This repository contains reusable workflows to be used in our other repositories in order to comply with our git flow policy.
Keep in mind that in odoo.sh, branches are environments.
- A
productionbranch, for the production environement - A
stagingbranch for the staging environment - Several
feat/my-feature,fix/my-fixas development environments
- All developments starts on a dedicated branch
- Development branches are merged in staging with a merge commit
stagingis rebased onto development branches before merging- Publish a version tag (ex:
v18.0.1.0.0) onstaginghead to automatically deploystagingintoproduction- Any tag not complying to the pattern above will be ignored
- If tag does not match
staginghead, deployment will fail and throw an error
- Never work on
production. No clone, no push, not even a tiny little fetch. Use tags for workflow automation. productionandstagingshould always be identical after a deployment.- Do not edit code through GitHub web UI, no matter how much it asks you to do it.