site/content/docs/v1.5/release-instructions.md
This page covers the steps to perform when releasing a new version of Velero.
upstream pointing to the Velero repository so the scripts can work properly.For each major or minor release, create and publish a blog post to let folks know what's new. Please follow these instructions.
You don't have enough free space in /var/cache/apt/archives/ when running make serve-docs: run docker system prune.changelogs/CHANGELOG-<major>.<minor>.md by copying the most recent one.changelogs/CHANGELOG-<major>.<minor>.md
make changelog to generate a list of all unreleased changes.CHANGELOG-<major>.<minor>.md, under the "All Changes" section for the release.CHANGELOG.md file to properly reference the release-specific changelog file
changelogs/unreleased.make gen-docs, passing the appropriate variables. Examples:
a) VELERO_VERSION=v1.5.0-rc.1 NEW_DOCS_VERSION=v1.5.0-rc.1 make gen-docs.
b) VELERO_VERSION=v1.5.0 NEW_DOCS_VERSION=v1.5 make gen-docs).PREVIOUS_DOCS_VERSION=<doc-version-to-copy-from> is optional; when not set, it will default to the latest doc version.site/content/docs/v1.5.0-beta.1 exists, and you're releasing v1.5.0-rc.1 or v1.5site/content/docs/<pre-release-version>.site/data/docs/<pre-release-version>-toc.yml.site/data/toc-mapping.yml.site/config.yml.main folders.site/README-HUGO.md to complete the docs generation process.make serve-docs and review the site.VELERO_VERSION=v1.0.0-rc.1 GITHUB_TOKEN=REDACTED ./hack/release-tools/tag-release.sh.VELERO_VERSION=v1.0.0-rc.1 GITHUB_TOKEN=REDACTED ./hack/release-tools/tag-release.sh publish.v1.4.1), note that the full CHANGELOG-1.4.md contents will be included in the body of the GitHub release. You need to delete the previous releases' content (e.g. v1.2.0's changelog) so that only the latest patch release's changelog shows.goreleaser process should have detected if it's a pre-release version and, if so, checked the box at the bottom of the GitHub release page appropriately, but it's always worth double-checking.velero version shows the expected outputThese are the steps to update the Velero Homebrew version.
export HOMEBREW_GITHUB_API_TOKEN=your_token_here on your command line to make sure that brew can work on GitHub on your behalf.hack/release-tools/brew-update.sh. This script will download the necessary files, do the checks, and invoke the brew helper to submit the PR, which will open in your browser.What to include in a release blog:
Release blog post PR:
site/index.html to have "Latest Release Information" contain a link to the new post.Once you are finished doing the release, let the rest of the world know it's available by posting messages in the following places.
What to include: