2 months ago
Hey there!
I'm working on a feature where we deploy service in railway using github repo from clients and we have github integration with them we generate github tokens etc using GitHub app that we made. However when trying to deploy repo to Railway it fails.
I assume because client org is not connected to railway through our Railway account. Looking at GraphQL API I can see that there is a way to deploy private docker image by passing username and password.
Is there a way to deploy github repo in a similar manner?
Thanks!
4 Replies
2 months ago
You can add external organizations in your Railway account. Go to https://dev.new, click on GitHub, and click "Configure GitHub App" at the top.
2 months ago
Yeah no I get that, What i'm asking is that I host railway app that allows others to connect their GitHub accounts and I want to deploy their repos on railway using Railway API.
2 months ago
probably I didn't understand the issue so I apologise if it doesn't make sense, but if you want to deploy app from other repos, can you just have multiple railway tokens and deploy using the cli in the pipeline?
2 months ago
Same issue here I’d like to deploy from repositories that belong to GitHub accounts other than the one connected to my Railway account.
I can connect the Railway app to a separate GitHub account without any problem, but when I try to select a repository to deploy from, it still only shows the repos from my main GitHub account. It doesn’t seem to recognize or list the repos from the secondary account that I connected through the app.