-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to run all railway commands with RAILWAY_TOKEN #105
Comments
I looking forward in this too. I really need for |
Oh we didn't see this until now! I've added push events into our Discord for all future issues sorry about that! Ya this would be great. We can have a look into it and circle back pretty soon! Will comment back when resolved |
Hey, @elkevinwolf! The CLI now supports Also @JakeCooper, can you close and lock this issue as resolved? Thanks. |
Thanks @AndreiJirohHaliliDev2006! Yes indeed! |
Hi @AndreiJirohHaliliDev2006 / @JakeCooper , sorry I just want to make sure. Is it already published? I just curious, so for https://github.com/bervProject/tell-me-everything-api/runs/2671890622?check_suite_focus=true |
Oops! Just pushed a new release. Should be live as of 0.2.22! |
Seems I am not understand how to use https://github.com/bervProject/tell-me-everything-api/runs/2672088984?check_suite_focus=true |
@berviantoleo You may need to do this instead: # if you want to use environments in GitHub Actions to control deployments
# please see the GitHub Docs for that.
- name: Deploy to Railway
run: |
RAILWAY_TOKEN=$RAILWAY_TOKEN railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} Also, it's currently not possible to sign in without email prompts (aka using an API token for logging in) to the CLI for now. |
@berviantoleo it seems like it's being set to |
We've discovered an issue with using |
Hi @gschier. No, it's not. It will be replaced when the value at the left side True. When the left side is false, the right side will not executed.
I think this one the problem that I met. So I will wait the #126 instead. |
This should be fixed and live in release v0.2.25 https://github.com/railwayapp/cli/releases/tag/v0.2.25 You don't need to railway link or login at all. If you up with the RAILWAY_TOKEN the associated project and environment will be used. Please let me know if you have any further issues with it |
Thanks. It's working as expected. |
I'm having the same problem here. Token not found. |
The Problem
I want to create a GitHub Action for my project that first validates the project (build, lint, test) and then, only if those tests passes, deploy to Railway. This is because, currently, only the
railway run
command is reading theRAILWAY_TOKEN
environment variable.Proposed solution
If all commands could read the
RAILWAY_TOKEN
environment variable, it would unleash its power by making it completely usable in headless environments like CI/CD systems.The text was updated successfully, but these errors were encountered: