https://pantsbuild.org/ logo
#general
Title
# general
c

curved-manchester-66006

03/16/2023, 6:49 PM
https://www.pantsbuild.org/docs/tagging-docker-images "We are looking into making some common dynamic data, such as the git sha, automatically available in the core Docker plugin in the future." Is there a ticket that maps to this? I'm tentatively thinking it would also be useful for the helm backend to dynamically set the version on publish.
c

curved-television-6568

03/16/2023, 6:50 PM
fwiw it is now much easier than before to get dynamic data into your BUILD files with
env()
,
c

curved-manchester-66006

03/16/2023, 7:19 PM
In this case I want the git short sha like in the example which isn't available as an environmental variable without a bunch of hoops I don't want to mandate on everyone's workstation.
👍 1
c

curved-television-6568

03/16/2023, 7:24 PM
there’s ways around that as well.. just in case, not saying a built in feature wouldn’t be nicer though 😉 https://github.com/pantsbuild/pants/discussions/17633
👀 1