modern-wolf-36228
11/26/2021, 2:24 PMcurved-television-6568
11/26/2021, 2:58 PMcurved-television-6568
11/26/2021, 2:59 PMcurved-television-6568
11/26/2021, 2:59 PMdocker_image(image_tags=["{build_args.MY_VAR}"])
curved-television-6568
11/26/2021, 3:00 PMpants.toml
or as extra build arg on the image itself:
[docker]
build_args = ["MY_VAR"]
curved-television-6568
11/26/2021, 3:00 PMdocker_image(extra_build_args=["MY_VAR"])
curved-television-6568
11/26/2021, 3:02 PMimage_tags
field, with custom logic applied to it.modern-wolf-36228
11/26/2021, 3:02 PMdocker_image
confused me, waitcurved-television-6568
11/26/2021, 3:02 PMmodern-wolf-36228
11/26/2021, 3:02 PMmodern-wolf-36228
11/26/2021, 3:02 PMmodern-wolf-36228
11/26/2021, 3:03 PMcurved-television-6568
11/26/2021, 3:03 PMmodern-wolf-36228
11/26/2021, 3:03 PMmodern-wolf-36228
11/26/2021, 3:04 PMdocker_image(image_tags=["{<http://build_args.MY|build_args.MY>_VAR}"], extra_build_args=["MY_VAR"])
then it will work?curved-television-6568
11/26/2021, 3:05 PM# pants.toml
[docker]
build_args=["BUILD_NUMBER"]
And then
docker_image(image_tags=["1.0-{build_args.BUILD_NUMBER}"])
modern-wolf-36228
11/26/2021, 3:05 PMmodern-wolf-36228
11/26/2021, 3:05 PMcurved-television-6568
11/26/2021, 3:06 PMcurved-television-6568
11/26/2021, 3:06 PMBUILD_NUMBER=0 ./pants ... # does the trick
modern-wolf-36228
11/26/2021, 3:08 PMmodern-wolf-36228
11/26/2021, 3:08 PMmodern-wolf-36228
11/26/2021, 3:08 PMgifted-soccer-38559
12/01/2021, 5:12 PMcurved-television-6568
12/01/2021, 5:14 PMcurved-television-6568
12/27/2021, 11:47 AMhappy-kitchen-89482
12/27/2021, 1:03 PMcurved-television-6568
12/27/2021, 1:11 PMhappy-kitchen-89482
12/27/2021, 7:21 PMcurved-television-6568
12/27/2021, 7:24 PMhappy-kitchen-89482
12/27/2021, 7:39 PMhappy-kitchen-89482
12/27/2021, 7:39 PMcurved-television-6568
12/27/2021, 7:40 PMcurved-television-6568
12/27/2021, 7:42 PM