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
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
⚠️ experimental feature
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
SIMPLE MARK
SIMPLE MARKOP2y ago
Awesome, thanks!
dwaynemac
dwaynemac2y ago
Hello! Do I need to set-up something for RAILWAY_GIT_COMMIT_SHA to be available? running
railway shell
export
railway shell
export
wont show any RAILWAY_xx variables
rando
rando2y ago
RAILWAY_ variables are only available inside the railway deployment itself shell shows service variables you've added
dwaynemac
dwaynemac2y ago
thank you
Want results from more Discord servers?
Add your server