To create a new release (example is for release v0.1.2
):
- Increase the version according to Semantic Versioning in the
VERSION
file. - Add a new entry to the
CHANGELOG.md
with the changes and improvements listed in it. - Set the new version, which will be the new container image tag, in the
Chart.yaml
of the Helm chart here (appVersion:
field). - If the helm chart vlues or documentation is updated, please run helm-docs (
make helm-docs
). - Check out a new branch, which will be used for the pull request to update the version:
git checkout -b BRANCH_NAME
- Commit these changes now using
git commit -s -S
. - Push the branch using
git push -u origin BRANCH_NAME
with these changes and create a pull request on GitHub. - Wait for pull request to be approved and merge it (if you have access to do so).
- Create the new tag using
git tag v0.1.2
and then rungit push -u origin v0.1.2
- In a few minutes, the CI should have built and published a draft of the release here GitHub - Releases List.
- Now edit the release and use the green button to publish the release.
- Congratulations! The release is now fully published.
helm-docs is a tool that generates the README.md for a helm-chart automatically. We need to run helm-docs manually, and check in the resulting autogenerated README.md at the path charts/extended-ceph-exporter/README.md.
Run the following command in the root of the repository:
make helm-docs