Add documentation for env & Find+Docs configuration in dev mode Add documentation for release Signed-off-by: Fabre Florian <ffabre@hybird.org>
2.2 KiB
Releasing a new version
Whenever we are cooking a new release (e.g. 0.0.1) we should follow a standard procedure described below:
-
Create a new branch named:
release/0.0.1. -
Bump the release number for backend project and Helm files:
- for backend, update the version number by hand in
pyproject.toml, - for Helm, update Docker image tag in files located at
src/helm/env.dfor bothpreprodandproductionenvironments:
image: repository: lasuite/find pullPolicy: Always tag: "v0.0.1" # Replace with your new version number, without forgetting the "v" prefix ... The new images don't exist _yet_: they will be created automatically later in the process. - for backend, update the version number by hand in
-
Update the project's
Changelogfollowing the keepachangelog recommendations -
Commit your changes with the following format: the 🔖 release emoji, the type of release (patch/minor/patch) and the release version:
🔖(minor) bump release to 0.0.1 -
Open a pull request, wait for an approval from your peers and merge it.
-
Checkout and pull changes from the
mainbranch to ensure you have the latest updates. -
Tag and push your commit:
git tag v0.0.1 && git push origin tag v0.0.1Doing this triggers the CI and tells it to build the new Docker image versions that you targeted earlier in the Helm files.
-
Ensure the new backend image tags are on Docker Hub.
-
The release is now done!
Deploying
Tip
The
stagingplatform is deployed automatically with every update of themainbranch.
Making a new release doesn't publish it automatically in production.
Deployment is done by ArgoCD. ArgoCD checks for the production tag and automatically deploys the production platform with the targeted commit.
To publish, we mark the commit we want with the production tag. ArgoCD is then notified that the tag has changed. It then deploys the Docker image tags specified in the Helm files of the targeted commit.
To publish the release you just made:
git tag --force production v0.0.1
git push --force origin production