R
Railway15mo ago
ed9815

Wait on deployment in GitHub Actions before continuing

Hi everyone, I am deploying my app via the CLI in a GitHub Actions workflow. The railway up command completes almost instantly and returns a link to the build logs (regardless of whether or not --detach is set). Is there a way to wait for the actual deployment to conclude before moving on to the next step in the pipeline? Thanks, Ed
12 Replies
Percy
Percy15mo ago
Project ID: 1d6eef7a-4828-447a-ba52-50bb8a047323
ed9815
ed9815OP15mo ago
1d6eef7a-4828-447a-ba52-50bb8a047323
ThallesComH
ThallesComH15mo ago
you're calling the railway cli inside your github actions? any reason to do that?
ed9815
ed9815OP15mo ago
We have previous steps in our pipeline (typecheck, test, deploy other services, etc.) before deploying our Railway app. Then we want to wait for the Railway deployment to conclude before continuing with further steps in the pipeline.
Brody
Brody15mo ago
cant railway be set to wait for ci to finish?
ThallesComH
ThallesComH15mo ago
That's what i was going to say, Check Suites
No description
Brody
Brody15mo ago
aka theres no need to run an action to deploy with the cli
ed9815
ed9815OP15mo ago
Ok thanks, that looks good. So we could use Check Suites to wait for our previous CI steps in GitHub Actions before Railway deployment. AKA the "before" stage But then once the Railway deployment is done, how would we continue with the rest of our pipeline? React to a webhook I guess?
Brody
Brody15mo ago
after the deployment, whats left in the pipeline?
ed9815
ed9815OP15mo ago
Deploy other services, not on Railway Railway hosts our CMS. Once the CMS is deployed, we need to deploy our API, then frontend
Brody
Brody15mo ago
ah cool, then yeah you would want to utilize railways webhooks for that
ed9815
ed9815OP15mo ago
Ok, thanks. Will give it a go
Want results from more Discord servers?
Add your server