cli: overwrite chart versions during install/upgrade

* As charts receive information like the container image from
the cli it makes sense to also version the charts based on the cli
version.
* The pseudoversion is recalculated when running cmake.
* When merging changes from release branch to main,
a new commit is introduced to set the PROJECT_VERSION back
to 0.0.0, so that builds include a pseudoversion.
This commit is contained in:
Otto Bittner 2023-02-21 11:55:49 +01:00
parent 948a12461c
commit 08ee56911b
66 changed files with 131 additions and 97 deletions

View file

@ -380,6 +380,12 @@ jobs:
git config --global user.email "release[bot]@users.noreply.github.com"
git fetch
git checkout -b "${NEW_BRANCH}"
- name: Update CMakeLists.txt
run: |
sed -i "s/project(constellation LANGUAGES C VERSION [0-9]\+\.[0-9]\+\.[0-9]\+)/project(constellation LANGUAGES C VERSION 0.0.0)/" CMakeLists.txt
git add CMakeLists.txt
git commit -m "deps: set PROJECT_VERSION to prerelease"
git push --set-upstream origin "${NEW_BRANCH}"
- name: Create PR