How to set up a staging -> production workflow?
I'm trying to set up a workflow whereby a push to master will build and auto deploy to our staging environment on railway but not autodeploy on our production environment until we approve the staging environment works correctly.
How can I go about doing this in railway? The docs show a "disable trigger" button but the UI has changed, and I can't find a "deploy" button anywhere
10 Replies
Project ID:
N/A
N/A
the branch setting can be found in the service settings
So are we expected to just disconnect and then re-connect to re-deploy?
you push to the connected branch to deploy the code
Right, but I want a workflow whereby I can push to the branch but not have it auto-deployed and instead wait for an approval or a "deploy" button to be clicked
I know I can use a staging and master branch but was hoping to avoid doing that
in this scenario you would need two branches
theres also PR environments https://docs.railway.app/guides/environments#enable-pr-environments
not sure if that helps here though
Ah ok thats a shame, thanks for your help
Would be good to get a manual deploy button in the future to support this kind of workflow
i've been asking for a manual deploy / re-deploy for a while now
i even made this https://bookmarklets.up.railway.app/service-redeploy/
but not sure if that solves your request, since you need a connected branch
thanks i'll check this out