How to automatically re-deploy when a new docker image is published?
marcospereira
HOBBYOP
2 years ago
I have a service that is deployed using a GHCR image with a :latest tag:
https://docs.railway.app/guides/services#deploying-from-a-docker-image
Our CI/CD pipeline publishes this image, and I wonder if there is a way to automatically tell Railway to redeploy the service whenever a new image with that tag is published.
Or do I need to use the CLI to trigger a new deployment?
1 Replies
2 years ago
Railway has no native feature for this, and the CLI can't help since your source is an image.
You would have to call Railway's public API, specifically the serviceInstanceRedeploy mutation.