curved-microphone-39455
01/12/2023, 9:07 PMpublish
Goal for docker_image
to put a dynamic Tag, I have already have a Git Tag with semver
accessible at this moment in my ci/cd, so if I have 1.2.3
, how could I publish to my repository using the same tag 1.2.3
?curved-television-6568
01/12/2023, 9:10 PMhigh-yak-85899
01/12/2023, 9:10 PMpants.toml
like this
[docker]
build_args = [
"MY_DYNAMIC_TAG",
]
and then amend your build target like such
docker_image(
name="docker",
repository="my_image_name",
image_tags=["{build_args.MY_DYNAMIC_TAG}"],
)
curved-microphone-39455
01/12/2023, 9:12 PMMY_DYNAMIC_TAG=1.2.3
and this will forwardhigh-yak-85899
01/12/2023, 9:12 PMcurved-microphone-39455
01/12/2023, 9:12 PM