Release process
This document describes Capact release process.
Prerequisites#
Admin role on the
capact,hub-manifestsandwebsiterepositories.Disabled branch protection rules for all repositories. This allows the release jobs to commit directly to
mainand release branches.NOTE: Do not forget to re-enable them after creating a release.
An GitHub Environment named
Releaseincapactio/capact,capactio/hub-manifestsandcapactio/websiterepositories with the following secret set:GH_PATโ GitHub personal access token. Make sure that it has selectedrepoandwrite:packagesscopes. Must be in format:"<username>:<PAT>"
In GitHub Environment named
Releaseincapactio/capactrepository add the following secret:GCS_CREDSโ Base64-encoded Google Cloud Platform credentials in JSON format to access Google Cloud Storage for binary and chart releases. Make sure that it hasstorage.objects.createpermission.
Steps#
Use Semantic Versioning 2.0.0 to specify the next Capact release.
Release Capact container images and binaries#
The release of Capact container images and binaries is automated and done using a GitHub Action workflow.
- Open the Make release workflow.
- Click
Run workflowand depending on your scenario:- if making a major/minor release from
main, select themainbranch and put the version in SemVer, e.g.0.5.0, - if making a patch release from a release branch, select the given release branch and put the version in SemVer, e.g.
0.5.1.
- if making a major/minor release from
- Click
Run workflowto start the release workflow.
The workflow will prepare the release branch, tag the appropriate commit and create a GitHub Release. gren is used to create the release notes from merged pull requests.
NOTE: After the release is complete consider removing the
GH_PATfrom the Release environment.
Prepare Hub for release#
The release of Hub Manifests is automated and done using a GitHub Action workflow.
- Open the Make release workflow.
- Click
Run workflowand put the version parameter and the runner image tag from acapactio/capactbuild. - Click
Run workflowto start the release workflow.
Release documentation#
The release of Capact documentation is automated and done using a GitHub Action workflow. If you release a new major or minor Capact version, follow these steps:
- Open the Make release workflow.
- Click
Run workflowand for the version parameter, provide an already released Capact version. - Click
Run workflowto start the release workflow.
To read more about documentation versioning, see the Versioning page on the Docusaurus website.