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

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?

Solved

9 Replies

brody
EMPLOYEE

20 days ago

This is not supported.


obstkompost
PROOP

20 days 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.


brody
EMPLOYEE

20 days ago

You would need to use a token with sufficient permissions.


obstkompost
PROOP

20 days 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.


brody
EMPLOYEE

20 days ago

Yep that's mentioned in the prerequisites section.


obstkompost
PROOP

20 days 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.


brody
EMPLOYEE

20 days ago

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


obstkompost
PROOP

20 days 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.


brody
EMPLOYEE

20 days ago

No problem!


Status changed to Solved brody 20 days ago


Loading...