2 years ago
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 }}27 Replies
2 years ago
have you tried running railway up --help ?
2 years ago
no, please see what the help flag prints
2 years ago
you do when deploying from a github action
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.
2 years ago
ah just thought it wasnt complete
i have a docker image and pg deployed on railway so i should be able to trigger deployments from CI, right?
2 years ago
i feel like im missing some context here, what do you hope to achieve running railway up without a project
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.
2 years ago
okay cool, where does railway up come into play here?
2 years ago
i think you have a misunderstanding of what railway up does?
2 years ago
that was for deploying a github repo
2 years ago
yes
makes sense.
If i do not specify --service to redeploy, would it re-deploy the pg instance as well?
2 years ago
not sure, think it would choose the most recently modified service, or it would tell you that you have not selected a service
2 years ago
what kind of token is that
2 years ago
try an account api token?


