inject RAILWAY_GIT_COMMIT_SHA as a build argument during "Deploy Latest"
sashaov
HOBBYOP

14 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.


Under Review

0 Threads mention this feature

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...