Deploying Latest Commit

charliePRO

6 months 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

charliePRO

6 months ago

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


6 months ago

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


6 months ago

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


6 months ago

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


6 months ago

I don't know 🙂


charliePRO

6 months 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 😅


6 months ago

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


charliePRO

6 months 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


6 months ago

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


6 months ago

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


charliePRO

6 months ago

Yeah works now 👍


6 months ago

awesome


6 months ago

!s


Status changed to Solved brody 6 months ago