helpful-ambulance-53940
11/24/2021, 9:20 AMcurved-television-6568
11/24/2021, 9:38 AMimage_tags
or in a LABEL
instruction for your image meta data. See https://www.pantsbuild.org/docs/tagging-docker-images#tagging-images
As I fetch that link, I notice we need to update the docs for how you can incorporate build args for the image tags field as well.curved-television-6568
11/24/2021, 9:44 AMdocker_image(name="my-image", image_tags=["{build_args.COMMIT_SHA}"])
And then when invoke pants with an extra build arg from the environment, for instance..
export PANTS_DOCKER_BUILD_ARGS=COMMIT_SHA=12345
./pants package ...
Or directly on the command line
export COMMIT_SHA=12314345
./pants --docker-build-args=COMMIT_SHA package ...
curved-television-6568
11/24/2021, 9:45 AMpants.toml
..
See ./pants help docker
and ./pants help docker_image
for help on those parts.helpful-ambulance-53940
11/24/2021, 10:53 AMclean-night-52582
11/24/2021, 12:27 PMpython_distribution
clean-night-52582
11/24/2021, 12:27 PMcurved-television-6568
11/24/2021, 1:17 PMpython_distribution
are you referring to the use of SetupPythonKwargs
in a plugin?clean-night-52582
11/25/2021, 6:27 PMcurved-television-6568
11/26/2021, 9:16 AMI notice we need to update the docs for how you can incorporate build args for the image tags field as well.Done, for the 2.9 version of the docs. https://www.pantsbuild.org/v2.9/docs/tagging-docker-images#tagging-images