Skip to content

Commit 7397ff7

Browse files
authored
Merge pull request #79 from SovereignCloudStack/kr/add-release-docs
📖 add docs for releasing cluster-stack-operator
2 parents 2850d57 + 76681e2 commit 7397ff7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/develop/releasing.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Release Process
2+
This document describes the release process of cluster-stack-operator.
3+
The release process is done using GitHub actions. The release workflow triggers when a tag is pushed starting with `v*`
4+
5+
> [!NOTE]
6+
> Before the release, please make sure that you've already updated metadata.yaml at the root of the repo. So, if you're using v1.2.0 then you'll also need to update the `releaseSeries` block in metadata.yaml. The tag used for releasing should be compatible with what we have defined in metadata.yaml
7+
8+
Creating a new release of cluster-stack-operator covers the following steps:
9+
10+
### Step 1: Create and Push a tag
11+
1. Create an annotated tag
12+
```bash
13+
git switch main
14+
git pull --rebase
15+
# check older releases for semver compatibility
16+
export RELEASE_TAG=<the tag of the release to be cut> (e.g. v0.0.1)
17+
git tag -a ${RELEASE_TAG} -m ${RELEASE_TAG}
18+
```
19+
2. Push the tag to GitHub repository
20+
21+
> [!NOTE]
22+
> `origin` should be the name of the remote pointing to https://github.com/SovereignCloudStack/cluster-stack-operator and you should have permission to push tags to the repository.
23+
24+
Once you confirm that origin is correct then push the tag by invoking the following command:
25+
```bash
26+
git push origin ${RELEASE_TAG}
27+
```
28+
This will automatically trigger a Github workflow to create a draft release in GitHub.
29+
30+
### Step 2: Release in GitHub
31+
1. Review the draft release manually and check if the image tags are correct in the released manifest.
32+
2. After this, if you're going to cut a pre-release version then please append this line to the top of the release notes.
33+
> [!WARNING]
34+
> :rotating_light: This is a RELEASE CANDIDATE. If you find any bugs, please file an [issue](https://github.com/SovereignCloudStack/cluster-stack-operator/issues/new).
35+
3. Before publishing the images make sure that images are already there in GitHub container registry. This can be checked in the [packages section](https://github.com/SovereignCloudStack/cluster-stack-operator/pkgs/container/cso) of the organisation.
36+
4. Publish the release.

0 commit comments

Comments
 (0)