15 hours ago
I believe that injecting the variable only with Github automatic build is and not injecting during "Deploy Latest" is inconsistent. Hope you can fix this.
From conversation with Railway AI:
The issue: When you use the "Deploy latest" command, Railway isn't automatically injecting RAILWAY_GIT_COMMIT_SHA as a build argument. This is a Railway platform limitation — the variable is available as an environment variable at runtime, but it's not automatically passed as a Docker build ARG.
...
Bottom line: This is a Railway platform gap. You should open a support thread at station.railway.com requesting that RAILWAY_GIT_COMMIT_SHA be passed as a Docker build ARG automatically. In the meantime, one of the workarounds above may unblock you.
0 Threads mention this feature
0 Replies