Is it possible to acess .git in a docker build on coolify? #4628
-
I'm trying to append the commit hash into the main file after building, it's working locally and on my docker, but not on Coolify docker build, it looks like the .git folder is not included in the available project files after cloning the GitHub repository. Can someone please provide some light on it? |
Beta Was this translation helpful? Give feedback.
Answered by
danielbarion
Dec 20, 2024
Replies: 1 comment
-
I was trying to get the commit hash, here's the solution: https://discord.com/channels/459365938081431553/1318014921639858316/1319670167273209956 basically: https://coolify.io/docs/knowledge-base/environment-variables/
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danielbarion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to get the commit hash, here's the solution:
https://discord.com/channels/459365938081431553/1318014921639858316/1319670167273209956
basically: https://coolify.io/docs/knowledge-base/environment-variables/
SOURCE_COMMIT