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
Fragly
Fragly12mo ago
those aren't available during build though, are they?
Brody
Brody12mo ago
I don't see why they wouldn't
Fragly
Fragly12mo ago
NOWAY
The Big E in Math -> Σ
Prob need to use the ARG command like any other env. But ye thanks!
Brody
Brody12mo ago
if you're using a dockerfile yeah, if you're using nixpacks, no
Want results from more Discord servers?
Add your server