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:
Build app
Docker build-push
railway deployment redeploy ...(since the service's source isimg: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.
6 Replies
4 months ago
Hello,
I think this may be useful?
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.
Status changed to Solved brody • 4 months ago