Skip to content

Commit

Permalink
Create release commit instead of tagging a random one
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweig committed Feb 27, 2020
1 parent 0808f11 commit 30e0bb3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/RELEASING_KREW.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,26 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
TAG=v0.3.2-rc.1 # <- change this
```

1. **Create a release commit:**

git commit -am "Release ${TAG:?TAG required}" --allow-empty

1. **Push PR and merge changes**: The repository hooks forbid direct pushes to
master, so the changes from the previous step need to be pushed and merged
as a regular PR.

git push origin master

(Only repository administrators can directly push to master branch.)

1. **Wait until the build succeeds:** Wait for CI to show green for the
build of the commit you just pushed to master branch.

1. **Tag the release:**

```sh
git fetch origin
git reset --hard origin/master
git reset --hard origin/master # when the previous merge is done
release_notes="$(TAG=$TAG hack/make-release-notes.sh)"
git tag -a "${TAG:?TAG required}" -m "${release_notes}"
```
Expand Down

0 comments on commit 30e0bb3

Please sign in to comment.