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
Percy2mo ago
Project ID: N/A
purduemike
purduemike2mo ago
n/a
Solution
Brody
Brody2mo ago
that is a dynamic variable that would only be available during runtime, it's not available to be referenced
purduemike
purduemike2mo ago
does runtime include build time? meaning accessible during build
Brody
Brody2mo ago
nixpacks or Dockerfile?
purduemike
purduemike2mo ago
dockerfile
Brody
Brody2mo ago
then it would be available during the build as long as you do ARG RAILWAY_GIT_COMMIT_SHA
purduemike
purduemike2mo ago
That worked perfectly ARG RAILWAY_GIT_COMMIT_SHA then set another var with it
Brody
Brody2mo ago
you don't need that ENV line you're assigning the same variable to the same variable
purduemike
purduemike2mo ago
Ah, you are right!
Want results from more Discord servers?
Add your server