How to deploy a Dockerfile that references a Docker image from a private registry
obstkompost
PROOP

a month 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?

Solved

9 Replies

a month ago

This is not supported.


obstkompost
PROOP

a month ago

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.


a month ago

You would need to use a token with sufficient permissions.


obstkompost
PROOP

a month ago

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.


a month ago

Yep that's mentioned in the prerequisites section.


obstkompost
PROOP

a month ago

Do you perhaps have any idea how this problem could be solved?
Unfortunately, this is preventing me from building a complete CI/CD pipeline.


a month ago

You would need to use a workspace or account scoped token.


obstkompost
PROOP

a month ago

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.


a month ago

No problem!


Status changed to Solved brody about 1 month ago


Loading...