Usage with GitHub Actions (--ci flag)

2 years ago

Hi! Trying to setup a GitHub Actions workflow, where the expected behavior is:

  1. Railway Deployes project (web-server)
  2. then (after 1 succeeds) -> trigger a Vercel deployment

So I need Railway to report whether the deployment has succeeded or not. I'm using CLI 3.7.0, and with the --ci flag the railway up command still exits without the build completing.

Would appreciate any help.

Relevant Info:

Service ID: 81329614-1c97-4eb8-8ac3-401d5b6e7e83

Command Used: railway up --ci -d --service web-server (with RAILWAY_TOKEN set in the env)

Current Output:

Indexed Compressed [====================] 100% Uploaded Build Logs: https://railway.app/project/3f5c1cb0-e423-4582-89bd-9c19e2efe621/service/81329614-1c97-4eb8-8ac3-401d5b6e7e83?id=ad14708a-f0a1-46d8-b06a-3df8cd397420&

[exits]

4 Replies

2 years ago

Better formatted output:

Indexed                                                                                                         
Compressed [====================] 100%                                                                          
Uploaded                                                                                                        
Build Logs: https://railway.app/project/3f5c1cb0-e423-4582-89bd-9c19e2efe621/service/81329614-1c97-4eb8-8ac3-401d5b6e7e83?id=ad14708a-f0a1-46d8-b06a-3df8cd397420&
[exits]

So, I took a look for you here and I don't think we have the valid return value you need. You could get the service and listen for a webhook when it's completed but I don't think thats all that optimal.

We might need you to open up a request over in Feedback so we can aggregate demand for this, I have also made a ticket internally.

I also gave your team a Slack channel to give us addtl. requirements as well.


2 years ago

Thanks for the response! And thanks for the Slack invite, would love to continue the conversation there


This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...