Changing the docker image of a service using @railway/cli ?
jonas-admin
PROOP

4 months ago

I am exploring CD options and I haven't found a way to change the docker image using the CLI.

The use case is version locking per environment.

For a specific app, our deployment workflow is:

  1. Build app

  2. Docker build-push

  3. railway deployment redeploy ... (since the service's source is img:latest)

We have a shared monorepo setup (running in a self-hosted forgejo instance).

The issue is:
When someone from our team changes an environment variable directly in the dashboard (or the CLI), the service will re-pull the image instead of just updating the environment variables and then restarting the deployment.

This also questions the flow for automated production deployments since given this behavior, I don't think we can setup a CICD pipeline that would do it.

Solved

6 Replies

4 months ago

Hello,

I think this may be useful?


jonas-admin
PROOP

4 months ago

Thanks!


jonas-admin
PROOP

4 months ago

May I ask why using project tokens is not allowed? Is it a limitation of the GraphQL API?


4 months ago

Not sure, all I know is that I likely tried it with a project token and it didn't work, but that was a while ago, so can't hurt to try it.


jonas-admin
PROOP

4 months ago

Alright I'll try to fiddle with it


jonas-admin
PROOP

4 months ago

Thanks!


Status changed to Solved brody 4 months ago


Loading...