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
Percy
Percy2y ago
Project ID: N/A
spidertwin2
spidertwin2OP2y ago
N/A
Brody
Brody2y ago
i assume it would be done a similer way to how this does it? https://blog.railway.app/p/gitlab-ci-cd
spidertwin2
spidertwin2OP2y ago
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 👍
Brody
Brody2y ago
awesome!
nunocostapt
nunocostapt12mo ago
Can you share your file, it keeps flail for me, any input I salute
Want results from more Discord servers?
Add your server