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