Whenever we are cooking a new release (e.g. 4.18.1) we should follow a standard procedure described below:
release/4.18.1.Bump the release number for backend project, frontend projects, and Helm files:
pyproject.toml,src/frontend, src/frontend/apps/*, src/frontend/packages/*, src/mail), run yarn version --new-version --no-git-tag-version 4.18.1 in their directory. This will update their package.json for you,for Helm, update Docker image tag in files located at src/helm/env.d for both preprod and production environments:
image:
repository: lasuite/impress-backend
pullPolicy: Always
tag: "v4.18.1" # Replace with your new version number, without forgetting the "v" prefix
...
frontend:
image:
repository: lasuite/impress-frontend
pullPolicy: Always
tag: "v4.18.1"
y-provider:
image:
repository: lasuite/impress-y-provider
pullPolicy: Always
tag: "v4.18.1"
The new images don’t exist yet: they will be created automatically later in the process.
Update the project’s Changelog following 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 4.18.0
main branch to ensure you have the latest updates.Tag and push your commit:
git tag v4.18.1 && git push origin tag v4.18.1
Doing this triggers the CI and tells it to build the new Docker image versions that you targeted earlier in the Helm files.
[!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 v4.18.1
git push --force origin production