This document describes how to release a new version of cke-tools
.
Given a version number MAJOR.MINOR.PATCH.
The MAJOR and MINOR version matches that of Kubernetes.
The patch version is increased with cke-tools
update.
-
Determine a new version number. Then set
VERSION
variable.# Set VERSION and confirm it. It should not have "v" prefix. $ VERSION=x.y.z $ echo $VERSION
-
Make a branch to release
$ git checkout main $ git pull $ git checkout -b "bump-tools-$VERSION"
-
Edit
CHANGELOG.md
in this directory. -
Commit the change and create a pull request.
$ git commit -a -m "Bump cke-tools version to $VERSION" $ git push -u origin HEAD $ gh pr create -f
-
Merge the pull request.
-
Add a git tag to the main HEAD, then push it.
# Set VERSION again. $ VERSION=x.y.z $ echo $VERSION $ git checkout main $ git pull $ git tag -a -m "Release tools-$VERSION" "tools-$VERSION" # Make sure the release tag exists. $ git tag -ln | grep "tools-$VERSION" $ git push origin "tools-$VERSION"
GitHub Actions will build and push the new image as ghcr.io/cybozu-go/cke-tools:X.Y.Z
.