Github actions + monorepo / skipping deployment
Hello! I'm trying to setup a deployment strategy and hope you can help (or if it is even possible)
I am using a monorepo (turborepo*) and have a handful of services. Here is what I would like to do:
Required
1. trigger github action on push to production branch
2. build all services
3. test all services
4. skip** deploying services that have not changed using a command (not just a glob pattern)
5. deploy a pruned*** version of changed services based on its dependencies
6. rollback new deployments if any of them fail to deploy (although this shouldn't happen)
Optional
7. wait for deployment
6. test the deployed services
7. rollback services that do not pass tests
* https://turbo.build/repo/docs
** https://turbo.build/repo/docs/core-concepts/monorepos/skipping-tasks
*** https://turbo.build/repo/docs/handbook/deploying-with-docker#the-solution
Turbo
Turborepo Quickstart – Turborepo
Create your first monorepo or add Turborepo to an existing project.
2 Replies
Project ID:
478b3475-6d1b-4b34-9e4a-2ba4f2c34932
478b3475-6d1b-4b34-9e4a-2ba4f2c34932