Obtain git commit hash
Hey, I want to keep track of release version on the release file by using git hash, but railway's CI/CD system doesn't seem to to include .git directory during build process. Is there a way to pull the hash info without needing to run
git clone
(or calling github API)?6 Replies
Solution
those aren't available during build though, are they?
I don't see why they wouldn't
Prob need to use the
ARG
command like any other env.
But ye thanks!if you're using a dockerfile yeah, if you're using nixpacks, no