How can i deploy a specific commit out of my github repository?
zonacar
HOBBYOP

9 days ago

Hello, how can i deploy a specific commit. I only can deploy the newest commit which is very frustrating..
I create a service, connect my repo to it, i dont even connect the branch to it where i push the code. how can i now select a specific commit that should be deployed?

2 Replies

Status changed to Awaiting Railway Response Railway 9 days ago


It's possible to do via the API, if what Brody said is still factual;
You can try opening dev tools and intercepting the deploy request, you could copy it, modify it to have the right commit SHA, and send it.
(I'm writing the above from what I expect to be possible, I haven't tried it)

What I would recommend, which is simpler for now and the future is to either
- fork the repository/clone that only has the commit you want
- a published image with the sha as tag

Attachments


xmrafonso
FREETop 5% Contributor

9 days ago

The easier way is to simply create a new branch, revert back to the commit you want, and use that branch in railway. It's the easiest work around for it.


Loading...