9 months ago
Hey,
I am trying to setup deployments for specific PRs (based on triggers like comments or tags on GH).
I am aware that you can enable PR environments on Railway but I don't want every PR to be deployed since most don't need a deployment.
I have an existing build process (build + publish Docker images to GHCR) which builds multiple different images (I have 1 web image and 7 workers).
Is it possible to use my existing build process and deploy to Railway? I've read the docs about deploying a project from a Docker image but this doesn't seem to allow me to deploy branch specific Docker images from my GH workflow (via the CLI). In other words doesn't seem like I can change which image is being deployed using the CLI.
Even if I were to migrate my build process to be natively on Railway I don't see a way to update the image to deploy for each service (different in each environment) via the CLI
My end goal is essentially the following:
PR is opened
IC comments
/deployGH workflow builds and publishes images for that branch/commit
GH workflow triggers deployment of those images on Railway
The docs I've read:
I feel like this should be straightforward so maybe I missing something.
Project ID: 0c581521-a4fd-4a7f-934a-305d621b828c
There is currently nothing in here since I'm just trying to get up and running.
Thanks in advance for any help!
3 Replies
9 months ago
This is something you would need to use our API for, calling it to update specific images used in services.
Thanks for the reply. I have tried using the API but I just get authentication errors for some routes and not for others. I have a separate thread with that issue: https://discord.com/channels/713503345364697088/1379754910379413586
9 months ago
Replied