Skip to content
How to deploy a Dockerfile that references a Docker image from a private registry
obstkompost
OP

10 months 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

10 months ago

This is not supported.


obstkompost
OP

10 months 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.


10 months ago

You would need to use a token with sufficient permissions.


obstkompost
OP

10 months 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.


10 months ago

Yep that's mentioned in the prerequisites section.


obstkompost
OP

10 months 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.


10 months ago

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


obstkompost
OP

10 months 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.


10 months ago

No problem!


Status changed to Solved brody • 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...