Using railway in bitbucket-pipelines.yml
Hello,
How should I use railway CLI commands with bitbucket pipelines? My
bitbucket-pipelines.yml
file has this step:
- step:
name: Deploy to railway
script:
- yarn add @railway/cli
- railway login
- railway environment development
- railway up
But how willrailway login
work in this case?6 Replies
Project ID:
N/A
N/A
i assume it would be done a similer way to how this does it?
https://blog.railway.app/p/gitlab-ci-cd
Works! My updated .yml file -
- step:
name: Deploy to railway
deployment: development
script:
- npm i -g @railway/cli
- RAILWAY_TOKEN=$RAILWAY_TOKEN railway up
Also had to configure Bitbucket > Repository settings > Deployments > in your environment, add variable RAILWAY_TOKEN with value of your railway project token
Thanks @Brody 👍awesome!
Can you share your file, it keeps flail for me, any input I