Moving master
to the next release is done by creating a new vX.Y+1.Z-alpha.0
tag for the next version.
git fetch [email protected]:scylladb/scylla-operator.git
git tag -s -a 'vX.Y+1.Z-alpha.0' 'FETCH_HEAD' -m 'vX.Y+1.Z-alpha.0'
git push [email protected]:scylladb/scylla-operator.git 'vX.Y+1.Z-alpha.0'
git push [email protected]:scylladb/scylla-operator.git 'vX.Y+1.Z-alpha.0^{}:refs/heads/vX.Y'
-
On the new release branch, change the default value of the image tag variable in Makefile. Set only major and minor part of version without the 'v' prefix.
IMAGE_TAG ?=X.Y
-
Commit the change.
git commit -a -m "Pin tags to X.Y"
-
Update generated code (manifests, examples, chart defaults, ...).
make update
-
Commit changes and create a PR with
vX.Y
as base branch.git commit -a -m "Updated generated"
-
Enable building docs from
vX.Y
branch by adding an entry todocs/source/conf.py
.BRANCHES = ['master', 'vX.Y-2', 'vX.Y-1', 'vX.Y']
-
Set new version as unstable:
UNSTABLE_VERSIONS = ['master', 'vX.Y']
-
Send the PR to
master
branch.
When the PRs are merged, publish vX.Y.0-beta.0
pre-release and ask QA to run smoke test using it.
All the releases and pre-releases are a promotion of an existing image built by our CI.
alpha
is a testing release that is done on demand, usually from a master
branch.
It is created as a promotion of an image created by a postsubmit from the associated branch.
beta
is a testing release that comes from a release branch.
The first beta
is made after cutting the branch.
If we plan to cut the rc
right after we cut the branch, we skip the beta
.
It is created as a promotion of an image created by a postsubmit from the associated branch.
rc
(release candidate) is the attempt at GA release.
It is intended to go through extended testing and become the GA image, if successful.
It is created as a promotion of an image created by a postsubmit from the associated branch.
GA release is our final release to be published.
It is created as a promotion of an rc
image tagged earlier, if it passes the tests.
First, you need to promote an existing image with your new tag. We use both docker.io
and quay.io
for resiliency and different features like image scanning. (Image synchronization may get automated in the future.)
skopeo copy --all docker://quay.io/scylladb/scylla-operator:latest-YYYY-MM-DD-HHMMSS docker://quay.io/scylladb/scylla-operator:X.Y.0-alpha.I
skopeo copy --all docker://quay.io/scylladb/scylla-operator:X.Y.0-alpha.I docker://docker.io/scylladb/scylla-operator:X.Y.0-alpha.I
skopeo copy --all docker://quay.io/scylladb/scylla-operator:X.Y-YYYY-MM-DD-HHMMSS docker://quay.io/scylladb/scylla-operator:X.Y.Z-beta.I
skopeo copy --all docker://quay.io/scylladb/scylla-operator:X.Y.Z-beta.I docker://docker.io/scylladb/scylla-operator:X.Y.Z-beta.I
skopeo copy --all docker://quay.io/scylladb/scylla-operator:X.Y.Z-rc.I docker://quay.io/scylladb/scylla-operator:X.Y.Z
skopeo copy --all docker://quay.io/scylladb/scylla-operator:X.Y.Z docker://docker.io/scylladb/scylla-operator:X.Y.Z
When the new image is tagged, you should create a matching git
tag that this image was built from. (This may get automated in the future.)
revision="$( skopeo inspect '--format={{ index .Labels "org.opencontainers.image.revision" }}' docker://docker.io/scylladb/scylla-operator:X.Y.Z-alpha.I )"
git fetch [email protected]:scylladb/scylla-operator.git
git tag -s -a vX.Y.Z-alpha.I "${revision}" -m "vX.Y.Z-alpha.I"
git push [email protected]:scylladb/scylla-operator.git vX.Y.Z-alpha.I
CI will automatically create a new release in GitHub and publish the release notes there, and it will automatically publish Helm charts.
A new release should be published in several channels. This is usually done only for RC and GA releases. For GA release we first write a google doc and get it reviewed and approved by at least the PM and the TL.
CI automatically publishes full release notes, listing every PR merged for this release.
There is a dedicated section on release notes on ScyllaDB Forum that is being linked from the ScyllaDB docs.
It filters posts to Release notes
category that have operator-release
tags.
To publish a release, create a new topic (post) in Release notes category.
Title | Tags | Content |
---|---|---|
[RELEASE] Scylla Operator X.Y.Z |
operator-release , operator , release |
copy&paste the google doc |
Send a post to the #scylla-operator
channel in ScyllaDB-Users Slack based on the following template.
:scylla-operator: :rocket: The ScyllaDB team is pleased to announce the release of Scylla Operator X.Y.Z. :rocket: :scylla-operator:
Release notes announcement and summary - https://forum.scylladb.com/t/release-scylla-operator-1-12-0/1446
Full release notes - https://github.com/scylladb/scylla-operator/releases/tag/v1.12.0
-
Release notes are now published by CI for every release and beta+rc prereleases. The release notes contain changes since the last corresponding release in the same category, according to this table
Current Previous v1.2.0-beta.0 v1.1.0 v1.2.0-beta.1 v1.2.0-beta.0 v1.2.0-rc.0 v1.1.0 v1.2.0-rc.1 v1.2.0-rc.0 v1.1.2 v1.1.1 v1.2.0 v1.1.0