We dogfood our project by using Tekton Pipelines to build, test, and release the Tekton Pipelines cli!
This directory contains the
Tasks and
Pipelines
that we use for releasing the cli.
TODO(tektoncd/pipeline#538): In tektoncd/pipeline#538 or tektoncd/pipeline#537 we will update
Prow
to invoke these Pipelines automatically, but, for now, we invoke them manually.
You can use the script ./release.sh that will do everything
that needs to be done for the release.
The first argument to release.sh is the release version. It
needs to be in a format like v1.2.3, which is basically SEMVER.
Release branches use the release-vX.Y.x naming convention (e.g.,
release-v0.43.x). The script automatically determines the branch name from
the release version.
- New minor release (e.g.,
v0.46.0): The script creates a newrelease-v0.46.xbranch frommain. - Patch release (e.g.,
v0.43.3): The script checks out the existingrelease-v0.43.xbranch. All patch fixes should already be merged into the.xbranch via pull requests before running the release.
The release script will ask you to provide a GitHub token with appropriate priviledges as documented under the release process prerequisites.
It will then use your Kubernetes cluster with Tekton and apply what needs to be done for running the release.
Finally it will launch the tkn cli that you have installed locally to show the logs.
You can define the env variable PUSH_REMOTE to push to your own remote (i.e
which point to your username on github).
You need to be careful if you have write access to the Homebrew repository since it
will do a release there. Until we can find a proper fix, release.sh generates a commit that
removes the brews data and cherry-picks it in the script.