Deploying Latest Commit
charlie
HOBBYOP

a year ago

Hi, I've got a service that is connected to GitHub but have switched off auto-deploys as I want to manually deploy it.

I assumed the Deploy Latest Commit command would deploy the latest commit on my GH repo but instead it seems to deploy the latest deploy in the "Deployment History", just wondering if this is a bug or intentional else I can't seem to find a way to manually deploy the latest commit from my repo?

Solved

0 Replies

charlie
HOBBYOP

a year ago

Project ID: c61c1785-a8d8-43d0-9d8b-6bd1f69aa3bf


passos
MODERATOR

a year ago

btw I had the same issue, I thought for some reason that deploying the latest commit was getting another branch's commit.


brody
EMPLOYEE

a year ago

it should deploy the latest commit for your repo's default branch that you set in your repo's settings on GitHub


passos
MODERATOR

a year ago

oh so i was right, any reason on why it doesnt get the default commit from the branch in the current service?


brody
EMPLOYEE

a year ago

I don't know 🙂


charlie
HOBBYOP

a year ago

Yeah it seems to point to the latest commit on Railway's Deployment History (at least for me). My current workaround is to reapply the Automatic Deploys, this triggers the first deploy, and then after it's deployed successfully you would switch off the Automatic Deploy but this triggers a second deploy it seems, so you end up doing 2 deploys when you really only want one.

I'd love to just have a button in the Sources section which just says "Deploy Latest Commit" (and have the commit link beneath it) instead of doing the quick links which I keep forgetting exist 😅


brody
EMPLOYEE

a year ago

so why do you need to deploy the latest commit so often? feels like there is a deeper more important issue here?


charlie
HOBBYOP

a year ago

Yes you're right, the deeper issue is that we have background jobs that tend to break/never resolve every time we have to deploy the specific service (the jobs can be up to 30 mins long) so the solution for now is to only deploy manually so we've got a bit more control


brody
EMPLOYEE

a year ago

well what branch do you usually connect to your service, and what branch is default in github?


brody
EMPLOYEE

a year ago

@cerwind - can you give this another try? I think we may have fixed it


charlie
HOBBYOP

a year ago

Yeah works now 👍


brody
EMPLOYEE

a year ago

awesome


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...