R
Railway2mo ago
IgnisDa

Specify service to deploy using `railway up`

deploy-production-instance:
runs-on: ubuntu-latest
needs: docker-release
steps:
- name: Set up CLI
run: npm i -g @railway/cli

- name: Deploy
run: railway up --detach
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
deploy-production-instance:
runs-on: ubuntu-latest
needs: docker-release
steps:
- name: Set up CLI
run: npm i -g @railway/cli

- name: Deploy
run: railway up --detach
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
24 Replies
Percy
Percy2mo ago
Project ID: N/A
IgnisDa
IgnisDa2mo ago
How do I specify the service to be deployed?
Brody
Brody2mo ago
have you tried running railway up --help ?
IgnisDa
IgnisDa2mo ago
yeah. does the default command deploy all the services? since I have a docker image
Brody
Brody2mo ago
no, please see what the help flag prints
IgnisDa
IgnisDa2mo ago
it says deploys project from CWD.
No description
IgnisDa
IgnisDa2mo ago
i dont have a project in CWD
Brody
Brody2mo ago
you do when deploying from a github action
IgnisDa
IgnisDa2mo ago
nope, if you take a look at my action, there is no checkout step. does not make sense to checkout the repo since i dont have any configuration in it at all. I want the deploy to happen on railway.
Brody
Brody2mo ago
ah just thought it wasnt complete
IgnisDa
IgnisDa2mo ago
i have a docker image and pg deployed on railway so i should be able to trigger deployments from CI, right?
Brody
Brody2mo ago
i feel like im missing some context here, what do you hope to achieve running railway up without a project
IgnisDa
IgnisDa2mo ago
the docker image is set up to use :latest on Railway. So once the docker image is published (docker-release job in my workflow file), I want to deploy the latest tag on railway too.
Brody
Brody2mo ago
okay cool, where does railway up come into play here?
IgnisDa
IgnisDa2mo ago
Should i be using railway redeploy?
Want results from more Discord servers?
Add your server