2.3 KiB
Releasing a new version
Whenever we are cooking a new release (e.g. 4.18.1) we should follow a standard procedure described below:
-
Checkout and pull changes from the
mainbranch to ensure you have the latest updates.git checkout main git pull -
The next steps are automated in the
scripts/release.py, you can run it using:make releaseThis script will ask you for the version you want to release and the kind of release (patch, minor, major). It will then:
-
Create a new branch named:
release/4.18.1. -
Bump the release number for backend and frontend project.
-
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) release version 4.18.1
-
-
Open a pull request ask you to wait for an approval from your peers and merge it.
-
Ask you to tag and push your commit:
git tag v4.18.1 && git push origin tag v4.18.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 and frontend image tags are on Docker Hub.
-
Create a PR on the lasuite-deploiement repository to bump the preprod version.
-
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 v4.18.1
git push --force origin production