I'm trying to set a env var in my app tied to ${{RAILWAY_GIT_COMMIT_SHA}} but it doesn't resolve

Trying to set a variable to ${{RAILWAY_GIT_COMMIT_SHA}} but this variable doesn't resolve. My deployment originates from a github trigger
Solution:
that is a dynamic variable that would only be available during runtime, it's not available to be referenced
Jump to solution
10 Replies
Percy
Percy5mo ago
Project ID: N/A
purduemike
purduemikeOP5mo ago
n/a
Solution
Brody
Brody5mo ago
that is a dynamic variable that would only be available during runtime, it's not available to be referenced
purduemike
purduemikeOP5mo ago
does runtime include build time? meaning accessible during build
Brody
Brody5mo ago
nixpacks or Dockerfile?
purduemike
purduemikeOP5mo ago
dockerfile
Brody
Brody5mo ago
then it would be available during the build as long as you do ARG RAILWAY_GIT_COMMIT_SHA
purduemike
purduemikeOP5mo ago
That worked perfectly ARG RAILWAY_GIT_COMMIT_SHA then set another var with it
Brody
Brody5mo ago
you don't need that ENV line you're assigning the same variable to the same variable
purduemike
purduemikeOP5mo ago
Ah, you are right!
Want results from more Discord servers?
Add your server