Project: Sonobuoy (Provisioning / Security & Compliance)
File: weekly-release.md

name: Weekly release about: Ensure weekly release gets done and follows documentation title: 'Weekly release' labels: kind/required Is there a Kubernetes release since the last Sonobuoy release? If so, apply the following steps: [ ] Ensure the upstream conformance script is working appropriately: Update the `kind-config.yaml` file with the new image version . Note: currently pinned to 1.23.x line due to incompatibility Until fixed, use latest 1.23.x image found Run quick mode to confirm sonobuoy/conformance test work properly with this k8s version Run `sonobuoy images` and get a list of test images [ ] Update the data supporting the e2e command (test lists). You can do this apart from the release process as well. ``` cd scripts ./gathere2edata.sh ``` [ ] Remove `/scripts/tmpoutput` folder [ ] Updating the versioned docs Explicit doc changes (if any) should be made to the appropriate files in directory `site/docs/main`. Next, generate a set of versioned docs for v0.x.y. For instance, the new docs be generated by running the command: ``` ./scripts/update_docs.sh -b -v v0.x.y ``` This will copy the current `main` docs into the version given and update a few of the links in the README to be correct. It will also update the website config to add the new version and consider it the newest version of the docs. The `-b` flag also bumps the version in the code to match. [ ] Create PR Commit previous changes and open a new PR Ensure your commits are signed (`--signoff`) Follow workflow progress in GithubActions. Once all checks passes, merge [ ] Tag release This step will tag the code and triggers a release. Pull the latest `main` to include the PR you just merged. Then, on the `main` branch, create an annotated `tag` for the commit that was merged and push it to upstream repo. ``` git tag -a v0.x.y -m "Release v0.x.y" git push upstream refs/tags/v0.x.y ``` If there is a problem and you need to remove the tag, run the following commands ``` git tag -d v0.x.y git push upstream :refs/tags/v0.x.y ``` > NOTE: The `:` preceding the tag ref is necessary to delete the tag from the remote repository. > Git refspecs have the format `<+><src>:<dst>`. > By pushing an empty `src` to the remote `dst`, it makes the destination ref empty, effectively deleting it. > For more details, see the or . [ ] Open a browser tab and go to: https://github.com/vmware-tanzu/sonobuoy/actions and verify go releaser for tag v0.x.y completes successfully. and verify the artifacts and changelog were published correctly. : ``` docker run -it sonobuoy/sonobuoy:v0.x.y /sonobuoy version ``` The `Sonobuoy Version` in the output should match the release tag above. and download the release binaries and make sure the version matches the expected values. cluster locally and ensure that you can run `sonobuoy run --mode quick`. Once the release is done, we copy the images over to our Harbor mirror. This is to provide a non-rate-limited point of access. Simply run: ``` skopeo login --username YOURUSERNAME projects.registry.vmware.com skopeo copy --all "docker://registry.hub.docker.com/sonobuoy/sonobuoy:v0.56.1" "docker://projects.registry.vmware.com/sonobuoy/sonobuoy:v0.56.1" ``` [ ] Update the release notes if desired on GitHub by editing the newly created release. We publish more thorough details in a blog post on a regular basis, so only minor updates to this should be required.