|
2 | 2 |
|
3 | 3 | ## Pre-flight |
4 | 4 |
|
| 5 | +- Identify a known good commit on the release branch |
| 6 | +- Tag the repository with a release candidate tag and push the tag |
| 7 | + - An [OWNER](/OWNERS) runs `git tag -s <version>-rc.n`, inserts the changelog and pushes the tag with `git push <version>-rc.n` |
5 | 8 | - Review and discuss any potential modifications to the [support matrix/policy][support-policy] |
6 | | -- Create a release commit e.g., `Release commit: v0.1.0`, by: |
7 | | - - Searching and replacing the previous image versions in the repo, specifically in: |
8 | | - - Makefile |
9 | | - - Release tool (`cmd/release/main.go`) |
10 | | - |
11 | | -## Semi-automatic |
| 9 | +- Review the development, getting started documentation, generation scripts, and update as necessary |
| 10 | +- Run `make release-artifacts`, with the appropriate environment variables: |
| 11 | + ``` |
| 12 | + REGISTRY="quay.io/k8s-staging" \ |
| 13 | + PULL_POLICY="IfNotPresent" \ |
| 14 | + MANAGER_IMAGE_TAG="<version>-rc.n" \ |
| 15 | + make release-artifacts |
| 16 | + ``` |
| 17 | +- Build and push a container image to the staging repository using the release candidate tag (`<version>-rc.n`): |
| 18 | + ``` |
| 19 | + REGISTRY="quay.io/k8s-staging" \ |
| 20 | + MANAGER_IMAGE_TAG="<version>-rc.n" \ |
| 21 | + time make docker-build |
| 22 | +
|
| 23 | + REGISTRY="quay.io/k8s-staging" \ |
| 24 | + MANAGER_IMAGE_TAG="<version>-rc.n" \ |
| 25 | + time make docker-push |
| 26 | + ``` |
| 27 | +- Run through the "Getting Started" instructions using the artifacts generated in these steps to validate that they result in a working cluster |
| 28 | +- Commit and PR any required changes before continuing the release process ([example](https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/249)) |
| 29 | + |
| 30 | +## (Unused) Semi-automatic |
12 | 31 |
|
13 | 32 | 1. Make sure your repo is clean by git's standards |
14 | 33 | 2. Run `go run cmd/release/main.go -remote <upstream-remote-name> -version v0.x.y`, replacing the [version][versioning], as appropriate |
|
20 | 39 | ## Manual |
21 | 40 |
|
22 | 41 | 1. Tag the repository and push the tag |
23 | | - - An [OWNER](/OWNERS) runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` |
| 42 | + - An [OWNER](/OWNERS) runs `git tag -s <version>` and inserts the changelog and pushes the tag with `git push <version>` |
24 | 43 | 2. Create a draft release in GitHub and associate it with the tag that was just created |
25 | 44 | 3. Checkout the tag and make sure git is in a clean state |
26 | | -4. Run `make release-artifacts` |
| 45 | +4. Run `make release-artifacts`, with the appropriate environment variables: |
| 46 | + ``` |
| 47 | + REGISTRY="quay.io/k8s" \ |
| 48 | + PULL_POLICY="IfNotPresent" \ |
| 49 | + MANAGER_IMAGE_TAG="<version>" \ |
| 50 | + make release-artifacts |
| 51 | + ``` |
27 | 52 | 5. Attach the tarball to the drafted release |
28 | 53 | 6. Attach `clusterctl` to the drafted release (for darwin and linux architectures) |
29 | | -7. Write the [release notes](#release-notes) and make sure the binaries uploaded return the correct version |
30 | | -8. Build and push the container image |
31 | | -9. Publish release |
32 | | -10. [Announce][release-announcement] the release |
| 54 | +7. Write the [release notes](#release-notes) and make sure the binaries uploaded return the correct version |
| 55 | +8. Build and push a container image to the staging repository using the release candidate tag (`<version>`): |
| 56 | + ``` |
| 57 | + REGISTRY="quay.io/k8s" \ |
| 58 | + MANAGER_IMAGE_TAG="<version>" \ |
| 59 | + time make docker-build |
| 60 | +
|
| 61 | + REGISTRY="quay.io/k8s" \ |
| 62 | + MANAGER_IMAGE_TAG="<version>" \ |
| 63 | + time make docker-push |
| 64 | + ``` |
| 65 | +11. Publish release |
| 66 | +12. [Announce][release-announcement] the release |
33 | 67 |
|
34 | 68 | ## Versioning |
35 | 69 |
|
@@ -85,12 +119,12 @@ The markdown is shared in the Kubernetes slack in the channel #cluster-api-azure |
85 | 119 | ### Minor/Patch Releases |
86 | 120 |
|
87 | 121 | 1. Announce the release in Kubernetes Slack on the #cluster-api-azure channel. |
88 | | -2. An announcement email is sent to `[email protected]` and `[email protected]` with the subject `[ANNOUNCE] cluster-api-provider-azure $VERSION has been released` |
| 122 | +2. An announcement email is sent to `[email protected]` and `[email protected]` with the subject `[ANNOUNCE] cluster-api-provider-azure <version> has been released` |
89 | 123 |
|
90 | 124 | ### Major Releases |
91 | 125 |
|
92 | 126 | 1. Follow the communications process for [pre-releases](#pre-releases) |
93 | | -2. An announcement email is sent to `[email protected]` with the subject `[ANNOUNCE] cluster-api-provider-azure $VERSION has been released` |
| 127 | +2. An announcement email is sent to `[email protected]` with the subject `[ANNOUNCE] cluster-api-provider-azure <version> has been released` |
94 | 128 |
|
95 | 129 |
|
96 | 130 | [release-announcement]: #communication |
|
0 commit comments