Getting Git Commit hash in Railway (Nixpacks) enviornment
Hey all, how could I get the current git commit hash for an image published on railway? (aka in a nixpacks enviornment) My current current method of running
git rev-parse --verify HEAD
does not work in said context.7 Replies
Project ID:
N/A
You might find these helpful:
- Question About Railway & Nixpacks
- How can I work with the Git repository from my deployment?
⚠️ experimental feature
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Awesome, thanks!
Hello!
Do I need to set-up something for RAILWAY_GIT_COMMIT_SHA to be available?
running
wont show any RAILWAY_xx variables
RAILWAY_
variables are only available inside the railway deployment itself
shell
shows service variables you've addedthank you