Custom deployment name for cli deploys
ionkorol
PROOP

a month ago

Is there a way to set custom deploy names when we deploy from cli instead of the standard "railway up" name

16 Replies

cmouser
FREE

15 days ago

Bumping this. I'm having the same issue. With Github integration I get the commit message as the name of the deployment. However, when using the CLI from deploy.yml I just get railway up which is not useful. I can't seem to find a way to change that.

1466497615372747000


brody
EMPLOYEE

15 days ago

We don't support changing this.


cmouser
FREE

15 days ago

Is it something that could be done in the future? It seems pretty trivial to add a -m flag and pass it through and makes understanding what is deployed in each environment much easier.


brody
EMPLOYEE

15 days ago

It is something that could be done now, I will let you know when it is live.


brody
EMPLOYEE

15 days ago

It's live whenever this finishes building -


cmouser
FREE

14 days ago

Thanks Brody! I've tested it this morning and it doesn't seem to work though, unless I'm misunderstanding. I'm using the new version 4.27.5.

        run: |
          # Get first line of commit message, escape quotes
          MSG=$(echo "${{ github.event.head_commit.message }}" | head -n1 | sed 's/"/\\"/g')
          echo "Deploying with message: $MSG"
          railway up --service ml4-api -m "$MSG" --detach &
          railway up --service ml4-worker -m "$MSG" --detach &
          railway up --service ml4-web -m "$MSG" --detach &
          wait

And in github I get:

Deploying with message: Second test of commit message
Indexing...
Indexing...
Uploading...
Uploading...
Indexing...
Uploading...

cmouser
FREE

14 days ago

But the dashboard still shows this:

1466833579471278000


brody
EMPLOYEE

14 days ago

Can you clear the Railway web cache, please?


brody
EMPLOYEE

14 days ago

This was a change across three components: backend, frontend, and CLI.

If you are accessing the frontend from your local browser cache, then the old frontend version won't support showing the message.


cmouser
FREE

14 days ago

Yep that fixed it. Thanks again!

1466844137910435800


brody
EMPLOYEE

14 days ago

Awsome!


Is it possible to get this message sent with webhooks?

1466878965263106000


brody
EMPLOYEE

14 days ago

Use case?


Custom discord webhooks etc

1466879878744772900


brody
EMPLOYEE

14 days ago

Yeah, I think we can do that, though I'm noticing perhaps a more relevant use case would be the message showing up in the workspace audit logs, but thats all the same system.


brody
EMPLOYEE

14 days ago

Should be live in like 30 minutes, audit logs & webhooks.


Loading...