Skip to content

Commit

Permalink
Update the release process with release notes instructions
Browse files Browse the repository at this point in the history
* Mention isovalent/tetragon-github-tools which we started using for generating
  release notes
* Add a script and instructions for publishing upgrade notes

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed May 30, 2024
1 parent b531245 commit 9d5de8b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/ISSUE_TEMPLATE/release_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@ assignees: ''

export RELEASE=v0.8.1

- [ ] Open a pull request to update the Helm chart and docs version:
- [ ] Open a pull request to update the Helm chart and docs:

git checkout -b pr/prepare-$RELEASE

# update Helm chart
./contrib/update-helm-chart.sh $RELEASE
make -C install/kubernetes
git add install/kubernetes/tetragon/
# update hugo version

# update version in docs (Hugo config)
sed -i "s/^version =.*/version = \"${RELEASE}\"/" docs/hugo.toml
git add docs/

# update upgrade notes
./contrib/update-upgrade-notes.sh $RELEASE
git add contrib/upgrade-notes/

git commit -s -m "Prepare for $RELEASE release"
git push origin HEAD

Expand Down Expand Up @@ -70,8 +77,12 @@ gitGraph
- [ ] When a tag is pushed, a GitHub Action job takes care of creating a new GitHub
draft release, building artifacts and attaching them to the draft release. Once
the draft is available in the [releases page]:
- [ ] Use the "Auto-generate release notes" button to generate the release notes.
- [ ] Review the release notes and click on "Publish Release" at the bottom.
- [ ] Use `tgt-notes` from [tetragon-github-tools](https://github.com/isovalent/tetragon-github-tools/)
to generate a first version of the release notes based on `release-note/` tags and PR messages.
- [ ] Copy upgrade notes from `contrib/upgrade-notes/vX.Y.Z.md` file into the release notes.
(Skip if there are no upgrade notes - it's quite likely for patch releases).
- [ ] Review the release notes and update them as needed.
- [ ] Click on "Publish Release" at the bottom.

- [ ] Publish Helm chart
- Follow [cilium/charts RELEASE.md] to publish the Helm chart.
Expand Down
18 changes: 18 additions & 0 deletions contrib/update-upgrade-notes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -ex

if [ -z "$1" ] || [[ ! $1 =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
echo "USAGE: ./contrib/update-upgrade-notes.sh vX.Y.Z"
exit 1
fi

NOTES_DIR="${NOTES_DIR:-contrib/upgrade-notes}"
version=$1

# Copy the latest upgrade notes to a version-specific file and create new latest from the template.
# Skip for pre-releases.
if [[ ! "$version" == *"-"* ]]; then
cp "$NOTES_DIR/latest.md" "$NOTES_DIR/$version.md"
cp "$NOTES_DIR/template.md" "$NOTES_DIR/latest.md"
fi

0 comments on commit 9d5de8b

Please sign in to comment.