nutritious-hair-72580
11/24/2022, 4:31 PM<trimmed branch name>--<git short commit sha>--<github actions build attempt number>
for CI builds
and
• <trimmed branch name>-<git short commit sha>--<timestamp>
for local builds
Curious what others are doing, and if an opinionated version (if a starting point) could be added to the docs or a blog post.curved-television-6568
11/24/2022, 4:34 PM{pants.hash}
be an option for you?
https://www.pantsbuild.org/v2.15/docs/tagging-docker-images#string-interpolation-using-placeholder-valuesnutritious-hair-72580
11/24/2022, 4:38 PMcurved-television-6568
11/24/2022, 4:50 PMnutritious-hair-72580
11/24/2022, 5:37 PM{pants.hash}
is not useful for immutable rego, because if the github workflow runs again, it will try to push the same value which won't be allowed.
I've got "gitHash-{build_args.GIT_COMMIT}-buildId-{build_args.BUILD_ID}"
working for now.