Skip to content

Releasing

Version scheme

Attune follows Semantic Versioning. The Helm chart version and appVersion are kept in sync in charts/attune/Chart.yaml as bare SemVer (0.1.23, no v). Git tags stay vX.Y.Z. Container images publish both vX.Y.Z and X.Y.Z (same digest). Empty image.tag uses appVersion so a default install pulls the bare tag.

Release process

1. Prepare the release

Update CHANGELOG.md with the new version's changes (or rely on release-please). Ensure all tests pass:

make verify

If you also want to exercise the local real-cluster end-to-end paths before a release, run:

make test-local

1b. Full E2E matrix (required before tagging a product release)

PR CI runs Chainsaw + Go E2E on one Kubernetes version only (rancher/k3s:v1.36.4-k3s1 in ci.yaml). Version-sensitive behavior (in-place memory limit clamp before 1.34 vs decrease on 1.34+, k3s 1.32 feature gate) is only exercised by E2E Nightly.

Before merging a release PR or publishing a tag after a feature-heavy window:

  1. Confirm tip of main includes the commits you are releasing.
  2. Dispatch the full matrix (or wait for the next scheduled run on that tip):
gh workflow run "E2E Nightly" --repo attune-io/attune
# Monitor: Actions → E2E Nightly → all E2E (K8s v1.32..v1.37) + Fuzz + Nightly Results
  1. Do not ship until the required K8s matrix cells (1.32–1.36) and Fuzz are green on that SHA. 1.37 is experimental until the k3s release is marked GA; a red 1.37 cell on the scheduled nightly does not block a ship by itself.

If the release-please PR is BEHIND main, update/rebase it (or let release-please refresh) so the version bump includes the latest commits.

1c. Curated GitHub Release notes (optional)

Do not commit RELEASE_NOTES.md to main. That path used to need a notes PR plus a cleanup PR after every cut.

Push a one-file orphan branch named for the version. The Release job (or Apply release notes) copies it onto the GitHub Release and deletes the branch. Skip this for a thin patch; the auto changelog is enough.

# tag v0.1.27 -> branch release-note-0.1.27
git checkout --orphan release-note-0.1.27
git rm -rf --cached .
# write RELEASE_NOTES.md at the repo root, then:
git add RELEASE_NOTES.md
git commit -s -m "docs: notes for 0.1.27"
git push -u origin release-note-0.1.27

Do not open a PR for that branch. Re-apply without rebuilding:

gh workflow run "Apply release notes" -f tag=v0.1.27

Or skip git: set Actions variables RELEASE_NOTES (markdown) and RELEASE_NOTES_TAG (v0.1.27 or 0.1.27). The tag pin stops leftover text applying to a later cut.

2. Tag the release

Create an annotated Git tag:

git tag -a v0.2.0 -m "Release v0.2.0"
git push origin v0.2.0

3. GoReleaser

The CI pipeline uses GoReleaser to build binaries and create the GitHub release. GoReleaser is triggered automatically when a tag matching v* is pushed.

GoReleaser produces:

  • Linux binaries for amd64, arm64, arm (v7), ppc64le, and s390x
  • A container image pushed to ghcr.io/attune-io/attune
  • A GitHub release with checksums and release notes

4. Container image signing

All release images are signed with cosign using keyless signing (Fulcio + Rekor). Verify a release image:

cosign verify \
  --certificate-identity-regexp="https://github.com/attune-io/attune" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/attune-io/attune:v0.2.0

5. Docker Hub publishing

The release workflow also pushes the same multi-arch image to Docker Hub at docker.io/attuneio/attune. The Docker Hub README is synced from docker/README.md on each release. The chart repository overview is synced from docker/chart-README.md to attuneio/attune-chart.

Both the GHCR and Docker Hub images share the same digest and are cosign-signed independently.

6. Helm chart publishing

The Helm chart is published as an OCI artifact to two registries:

  • GHCR: ghcr.io/attune-io/charts/attune (primary)
  • Docker Hub: docker.io/attuneio/attune-chart (separate from the container image repo)

The chart version in charts/attune/Chart.yaml is bumped automatically by release-please. version, appVersion, and the artifacthub.io/images tag each have x-release-please-version on that same line, after the value. release-please-config.json uses only the generic updater for this file. The yaml updater rewrites the file and deletes comments, so the image tag would stay on the previous version while appVersion moved. Do not add a yaml extra-file for charts/attune/Chart.yaml.

The CI pipeline packages, pushes to GHCR, mirrors to Docker Hub via oras cp, and cosign-signs both copies:

helm package charts/attune
helm push attune-0.2.0.tgz oci://ghcr.io/attune-io/charts
oras cp ghcr.io/attune-io/charts/attune:0.2.0 registry-1.docker.io/attuneio/attune-chart:0.2.0
cosign sign --yes ghcr.io/attune-io/charts/attune:0.2.0
cosign sign --yes docker.io/attuneio/attune-chart:0.2.0

Artifact Hub reads artifacthub.io/images from the chart archive, not from git. A version published while that annotation said ghcr.io/attune-io/attune:latest keeps that string until the archive is replaced. Artifact Hub then runs Trivy on :latest for every such version and emails the repository owners when the scan fails.

hack/republish-chart-images.sh pulls a published chart, renders the default operator image, and rewrites only that annotation. The chosen tag is the rendered image when the tag exists. Chart 0.1.24 renders v0.1.24. Charts 0.1.26 and newer render the bare appVersion. Charts through 0.1.23 render a bare tag that was never published, so the script uses the v tag that exists. That is the same tag the install guide tells you to set for 0.1.23.

Re-pushing a chart replaces its OCI digest and drops the Cosign signature on the old digest. The republish workflow signs the new digest on GHCR and on Docker Hub. Dispatch .github/workflows/republish-chart-images.yaml with push left false to print the plan. Dispatch it with push true to publish. The workflow does not run on pull requests or on pushes to main. An install that pinned the chart by digest must pick up the new digest. An install by chart tag (0.1.26) keeps that tag.

7. Static install manifest

Generate the combined install manifest for users who do not use Helm:

make build-installer IMG=ghcr.io/attune-io/attune:latest
make build-crds

This writes dist/install.yaml and dist/crds.yaml, uploaded as release artifacts. Keep them committed when they change: PR CI runs make verify-release-artifacts inside the CRD Freshness Check job and fails if dist/ lags CRDs or kustomize config. Force-add if needed (git add -f dist/install.yaml dist/crds.yaml; dist/ is gitignored for local noise).

Pre-release checklist

  • [ ] All tests pass (make test && make test-e2e)
  • [ ] CHANGELOG.md updated
  • [ ] Chart.yaml version and appVersion bumped
  • [ ] No uncommitted changes
  • [ ] Tag pushed to origin
  • [ ] If attune.io/* tracking annotation keys or value format changed, add internal/controller/testdata/annotations/vX.Y.Z.json and keep older fixtures
  • [ ] GitHub Actions billing is active (the release workflow uses ubuntu-latest, not self-hosted runners)
  • [ ] OperatorHub cluster rules match config/rbac/role.yaml. make sync-olm-rbac copies them into the CSV template. The leases rule stays. make generate-olm-bundle copies them into the bundle it writes.

Patch releases

For patch releases on an older minor version, create a release branch:

git checkout -b release-0.1 v0.1.0
# cherry-pick fixes
git tag -a v0.1.1 -m "Release v0.1.1"
git push origin v0.1.1