Automatically update Railway deployment of Docker container in GHCR
mbokinala
PROOP

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?

Solved

5 Replies

mbokinala
PROOP

a year ago

6e0b4cc4-a2bc-4ea2-808b-b59095d24c1f


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


mbokinala
PROOP

a year ago

Awesome, thanks


pygaps-dev
TRIAL

a year ago

!s


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...