Is there a way of accessing GIT_REV
during the build phase in the Dockerfile?
#5901
-
I have tried with ARG GIT_REV
ENV GIT_REV ${GIT_REV} but the environment variable is not set yet, and I couldn't figure out a way of including it via |
Beta Was this translation helpful? Give feedback.
Answered by
josegonzalez
Jun 1, 2023
Replies: 3 comments 2 replies
-
Does setting |
Beta Was this translation helpful? Give feedback.
0 replies
-
No, it doesn't. This is what I have done, but the variable is not available: dokku docker-options:add appname build "--build-arg GIT_REV" |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any update on this? Also need this please :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can probably make an enhancement here to make the env var available so the build-arg works. I'd recommend filing a ticket :)