Skip to content

Commit

Permalink
Merge pull request #2771 from camilamacedo86/update-release-doc
Browse files Browse the repository at this point in the history
馃摉  update the release doc with missing steps and workarounds
  • Loading branch information
k8s-ci-robot committed Jun 24, 2022
2 parents 6a9cedb + 7c4a0e1 commit 3dca1f7
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion RELEASE.md
Expand Up @@ -31,7 +31,12 @@ the process was done to ensure that we have an aligned process under the org (si
1. Create a new tag with the correct version from the new `release-<MAJOR.MINOR>` branch
2. Add the changelog on it and publish. Now, the code source is released !

### Announce the new release:
### Update the website docs (https://book.kubebuilder.io/quick-start.html)

1. Push a PR to update the `book-v3` branch with the changes of the latest release branch created (`release-<MAJOR.MINOR>`)
2. Ping in the [Kubebuilder Slack channel](https://kubernetes.slack.com/archives/CAR30FCJZ) and ask for reviews.

### When the release be done and the website update: Announce the new release:

1. Publish the new release on the Slack channel, i.e:

Expand All @@ -44,6 +49,27 @@ For more info, see the release page: https://github.com/kubernetes-sigs/kubebuil

2. An announcement email is sent to `kubebuilder@googlegroups.com` with the subject `[ANNOUNCE] Kubebuilder $VERSION is released`

## What to do if things goes wrong? How to release from my local env as a workaround?

As a workaround we can release from locally by:

1. Download google container builder: https://github.com/GoogleCloudPlatform/cloud-build-local
2. Verify that you can use the cloud-build-local CLI tool
3. Ensure that you are locally in the branch created for the release (`release-<MAJOR.MINOR>`)
4. Ensure that it has no changes in the code source ( `git status`)
5. Create the directory `cloudbuild` (`mkdir cloudbuild`)
6. Then, update the file `build/cloudbuild_local.yaml` with:

The following change is required for Goreleaser be able to add the binaries in the release page.

```sh
env: ["SNAPSHOT=1","GITHUB_TOKEN=your github token with access in the repo"]
```
**NOTE** You can create a token [here](https://github.com/settings/tokens/new).

7. Then, update the file `build/build_kubebuilder.sh` to remove the flag `--snapshot` (Otherwise, the binaries will be built with snapshot git commit hash instead of the tag version)
8. Run the command to trigger the release `$ cloud-build-local --config=build/cloudbuild_local.yaml --dryrun=false --write-workspace=./cloudbuild .`

## HEAD releases

The binaries releases for HEAD are available here:
Expand Down

0 comments on commit 3dca1f7

Please sign in to comment.