a year ago
I have a GitHub action set up to build a docker image of my application whenever code is pushed to main. The Github action pushes this container to a private repository in GHCR. I linked a service in Railway to this container (and set the GH access token) in the Railway dashboard, and everything deploys correctly.
Now, I want to automate the process of redeploying the Railway service whenever code is pushed. I followed the steps from this article on the Railway blog, but it looks like the railway up command tries to-rebuild the Docker image, which I don't want (it also errors out). Is there a command to tell Railway to pull the latest container version and deploy it?
5 Replies
a year ago
you would be looking for railway redeploy and that will redeploy the latest image as long as you are using the :latest tag
a year ago
!s
Status changed to Solved brody • about 1 year ago