4 months ago
I've a pnpm monorepo that I'm using to deploy several services in my project.
Whenever I push to the monorepo on github services deploy automatically.
How can I configure the project such that deployments can only be triggered manuaklly?
7 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
4 months ago
Hey, you probably want to configure watch paths for your services as they are deployed form a monorepo, so that a new deployment is only triggered when the specified paths are changed, documentation regarding this can be found here.
4 months ago
Hey udaian, I've built something similar in the past. An alternative recommendation to uxuz is that you configure your GitHub Actions workflow so that it's triggered on release. You can implement the above option as well, this could then act as a staging environment so as you scale you're able to perform any specific user or feature test ahead of release.
Check out the workflow below:
https://github.com/euanwm/OpenWeightlifting/blob/development/.github/workflows/deploy_prod.yml
4 months ago
@euanwm thanks for sharing - I can try something like this.
4 months ago
@uxuz even if I've configured the path it does not provide me the ability to deploy on demand. That is I want deployment to not happen even iff the path match files were changed. I want to deploy only when I'm ready to ship changes to the customers.
udaian
@uxuz even if I've configured the path it does not provide me the ability to deploy on demand. That is I want deployment to not happen even iff the path match files were changed. I want to deploy only when I'm ready to ship changes to the customers.
4 months ago
Hey, I would suggest you to use branches. Railway rolls out a new deployment on commit of the specified branch. In this case, you would develop all the new changes on another branch and merge it into main when you need it to trigger a new deployment with all the changes.