#Obtain git commit hash

8 messages · Page 1 of 1 (latest)

upbeat slate
#

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)?

shadow depotBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

slender briar
#

those aren't available during build though, are they?

trim echo
#

I don't see why they wouldn't

slender briar
upbeat slate
#

Prob need to use the ARG command like any other env.

But ye thanks!

shadow depotBOT