-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: implement release version validation and file-filter, improve …
…release docs [skip ci]
- Loading branch information
Michele Mancioppi
committed
Feb 17, 2023
1 parent
11b3860
commit e59df2d
Showing
4 changed files
with
51 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# To be used in conjunction with the https://github.com/dorny/paths-filter GitHub action | ||
|
||
new-release: | ||
- VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
previous_version=$(git show HEAD~1:VERSION) | ||
current_version=$(git show HEAD:VERSION) | ||
|
||
if [[ $((current_version)) == $((previous_version+1)) ]] | ||
then | ||
exit 0 | ||
else | ||
echo "Version '${current_version}' is not a linear increment from the previous '${previous_version}' version; expected new version: '$((previous_version+1))'" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# How to release the Lumigo Kubernetes Operator | ||
# Releasing the Lumigo Kubernetes Operator | ||
|
||
Push a commit incrementing linearly the version in the [VERSION](./VERSION) file. | ||
## How to trigger a new release | ||
|
||
Push a commit to the `main` branch that increments linearly the version in the [VERSION](./VERSION) file. | ||
|
||
## Release process | ||
|
||
The [build and release workflow](./.github/workflows/build-test-release.yml) will publish: | ||
|
||
1. **Container images:** Build the [`lumigo-kubernetes-operator`](https://gallery.ecr.aws/lumigo/lumigo-kubernetes-operator) and [`lumigo-kubernetes-telemetry-proxy`](https://gallery.ecr.aws/lumigo/lumigo-kubernetes-telemetry-proxy) images, and push them with the new version as tag to the public Amazon ECR repositories. | ||
1. **Helm chart defaults:** The new version is set as chart and app version in the [chart metadata](./deploy/helm/Chart.yaml); the new version is set as default tag in the [chart default values](./deploy/helm/values.yaml). | ||
1. **Git tag and GitHub release:** Create a new GitHub release that has the new Helm chart tarball attached as artifact. | ||
1. **Helm repository:** Update the index of the Helm repository hosted as GitHub Pages in the [`gh-pages` branch](https://github.com/lumigo-io/lumigo-kubernetes-operator/tree/gh-pages) will be automatically updated, pointing at the Helm chart tarball attached to the newly-created release. |