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
production
branch, for the production environement - A
staging
branch for the staging environment - Several
feat/my-feature
,fix/my-fix
as development environments
- All developments starts on a dedicated branch
- Development branches are merged in staging with a merge commit
staging
is rebased onto development branches before merging- Publish a version tag (ex:
v18.0.1.0.0
) onstaging
head to automatically deploystaging
intoproduction
- Any tag not complying to the pattern above will be ignored
- If tag does not match
staging
head, 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. production
andstaging
should always be identical after a deployment.- Do not edit code through GitHub web UI, no matter how much it asks you to do it.