20 days ago
Hello everyone,
Is it possible to deploy a Dockerfile that references a Docker image located in a private registry?
If so, how would you approach the problem?
9 Replies
20 days ago
This is not supported.
Hey Brody,
Is there another way to deploy a Docker image directly to railway after it has been created?
I tried using the public Graphql API and Github Actions, but the project token didn't work. And in my opinion, a personal/team token has too many permission.
So my idea was to create a new repo where the Docker image is referenced and deploy it directly via the Github source connection.
20 days ago
You would need to use a token with sufficient permissions.
Exactly, and at the same time, it shouldn't have "global" permissions.
I also tried your implementation here https://github.com/brody192/image-update-and-redeploy,
but unfortunately, project tokens don't work with that either.
20 days ago
Yep that's mentioned in the prerequisites section.
Do you perhaps have any idea how this problem could be solved?
Unfortunately, this is preventing me from building a complete CI/CD pipeline.
20 days ago
You would need to use a workspace or account scoped token.
Okay, I'll think about whether to use a workspace/account token or wait until there are options for using smaller-scoped tokens.
Thanks for your help and time, Brody!
Feel free to mark this thread as resolved.
20 days ago
No problem!
Status changed to Solved brody • 20 days ago