R
Railway2y ago
ewerx

Using GitHub Secrets values in a Railway deploy via GitHub Actions?

I am trying to setup a GitHub Action to handle deploys of a project with a custom Dockerfile. I need to inject some variables stored in GitHub Secrets into the docker build. Is this possible or do I need to store these variables in Railway's variables?
4 Replies
Percy
Percy2y ago
Project ID: 57b677a5-3ab2-46ff-a4d3-d825953cabb9
Percy
Percy2y ago
Yes, you can use GitHub Secrets values in a Railway deploy via GitHub Actions. You can create a new project token on the Settings page of your project dashboard within the Tokens submenu. Once you created your project token, you can add it to your repository secrets on Github by visiting the Secrets submenu under repository settings. You can then use the token in the Github Action by passing it to Github > Secrets > Actions. Finally,
⚠️ experimental feature
ewerx
ewerxOP2y ago
57b677a5-3ab2-46ff-a4d3-d825953cabb9 I mean other values besides the RAILWAY_TOKEN
Adam
Adam2y ago
As far as I know it’s not possible unfortunately you’ll have to copy them over yourself
Want results from more Discord servers?
Add your server