Skip to content

Releases

The contract iiiris maintains for releases: what triggers a release, what artifacts ship, what versioning rules apply, and how latest, rollback, and release notes are handled. Companion to the operator-facing walkthroughs in ../deployment.md — this spec captures what the release process guarantees; that file captures how an operator consumes a release.

What a release is

A release is a signed annotated tag matching v\d+\.\d+\.\d+ pushed to the GitLab origin. Pushing such a tag fires the release stage in .gitlab-ci.yml, which produces the artifact set below and a GitLab Release entry. Nothing else is a release:

  • Branch pushes are not releases.
  • Manual pipeline reruns on a tag are not new releases (they may republish the same artifacts; the tag identifies the release, not the pipeline run).
  • A push of an unsigned tag is rejected (see Signing below).

The tag is authoritative. The pipeline that produced its artifacts is just a build of that tag.

Signing

Release tags must be signed (git tag -s vX.Y.Z). Signing is load-bearing because the rollback contract is forward-only — published tags and images are never deleted (see Rollback). A signed tag makes any retroactive rewrite of a release identifier detectable, which is the only defence against an attacker (or a confused maintainer) silently swapping out what vX.Y.Z points at.

The scripts/cut-release.sh helper enforces git tag -s; the spec requires it.

Versioning

Strict Semantic Versioning. 1.0.0 is the compatibility commitment: from 1.0.0 on, the three surfaces below change incompatibly only in a major release.

Frozen surfaces

A major bump (X.0.0) is required for any breaking change to:

  • The IIIF API surface. info.json field names or shapes, the set of supported formats/qualities/extra-features, status code mapping, the route grammar in iiif.v{2,3}.ParsePath.
  • The YAML config schema or IIIRIS_* env vars. Renamed or removed fields, changed defaults that affect existing deployments, new required fields without a config.Default() value.
  • CLI flags / binary invocation. Renamed or removed flags, per cli.md (-config, -version, -check-config, -print-config, and anything added later from the time it ships).

A minor bump (1.X.0) adds to a frozen surface without breaking it: a new config field with a default, a new env var, a new supported format, a new route, a new flag.

A patch bump (1.X.Y) covers everything else: bug fixes, internal refactors, dependency updates, performance work, log-format tweaks, and cache-format changes (see below).

Not frozen

Everything outside the three surfaces stays as cheap to change after 1.0 as before it. These are not release surfaces, and changing them is never on its own a major bump:

  • Cache formats and on-disk layouts — including cache keys (see below).
  • The admin UI at /admin/ — pages, layout, and its internal routes.
  • Internal Go interfaces — everything under internal/, which Go already prevents other modules from importing.

Cache format is not a release surface

The filesystem cache backend's on-disk format is governed by cacheKeyVersion in internal/auth/cachekey.go (see cache-filesystem.md and scaffold.md). When the version bumps, iiirisd detects the legacy state on attach and wipes it automatically; operator-dropped files are preserved. From the operator's perspective the upgrade is seamless — caches re-warm, configuration doesn't change. So cache-format changes are patch bumps, not minor or major.

Before 1.0

Releases 0.1.0 – 0.15.0 followed pre-1.0 rules: a breaking change to a frozen surface was a minor bump (0.X.0), and operators were expected to read the changelog on every minor. 1.0.0 was declared once the IIIF surface was stable against the 2.x and 3.0 validators, the CLI had a deliberate design pass, and the config schema had shipped unchanged across three consecutive releases (v0.12.2, v0.14.0, v0.15.0).

Cadence

Ad-hoc. Releases are cut when meaningful work has shipped; there is no fixed schedule. Pre-release channels (-rc, -beta, nightly images) are not in scope — only stable vX.Y.Z tags produce artifacts.

Artifact set

Each release publishes:

Artifact Location Notes
Distroless container, multi-arch ${CI_REGISTRY_IMAGE}:vX.Y.Z + :latest linux/amd64 + linux/arm64. Default for docker pull.
Debian-slim container, multi-arch ${CI_REGISTRY_IMAGE}:vX.Y.Z-debian No :latest-debian. Fallback for shell-in-container debugging.
Linux/amd64 binary Generic package registry, linked from the Release Stripped, version-stamped. Requires libvips on host.
Linux/arm64 binary Generic package registry, linked from the Release Built natively on saas-linux-medium-arm64. Requires libvips on host.
Linux binary SHA256s Generic package registry, linked from the Release .sha256 file alongside each binary.
Windows/amd64 zip Generic package registry, linked from the Release iiirisd.exe + bundled MSYS2 UCRT64 DLLs + compliance bundle.
Windows/amd64 MSI Generic package registry, linked from the Release WiX v5 installer; per-user or all-users layout; all-users installs can register the Windows service (INSTALLSERVICE=1).
Windows artifact SHA256s Generic package registry, linked from the Release .sha256 file alongside the zip and the MSI.
GitLab Release entry GitLab Releases UI Description sourced from CHANGELOG.md; tag annotation as one-line supplemental summary; asset links to the package-registry binaries + container images.

The CI registry is the sole publication target. Mirroring to Docker Hub, GHCR, or quay.io is not in scope.

Downloadable binaries are public. Release binaries are uploaded to the project's generic package registry (packages/generic/iiiris/<tag>/…), not attached as job artifacts. Generic packages on a public project are anonymously downloadable independent of builds_access_level, so release downloads are public even while CI logs/artifacts stay members-only. The Release is created — and its asset links attached — via the Releases API in scripts/gitlab-release.sh, not the GitLab release: keyword (which the runner executes via release-cli, absent from our images and runner-version dependent — the cause of v0.5.0's release-publish failure).

latest semantics

:latest always points at the newest stable vX.Y.Z: the highest version, not the most recently tagged. The release pipeline re-tags :latest only when the tag being released is the highest vMAJOR.MINOR.PATCH tag (scripts/is-newest-release.sh); a patch to an older line (v1.0.2 after v1.1.0) leaves it where it is. The docs site's latest alias follows the same rule: an older line's patch updates that line's docs version only. Operators on :latest follow the project's stable line, including across a major bump. Operators who must not take a breaking change unattended pin a :vX.Y.Z tag instead; there are no floating :1 / :1.X tags.

Windows artifacts

Every release tag builds and publishes the Windows zip and MSI. build-windows-amd64 and build-windows-msi are blocking on release tags, so a broken Windows build or installer fails the release rather than shipping a Release entry that quietly lacks one.

  • Gap: v0.13.0 – v0.14.0. Windows CI was held (jobs absent from every pipeline) after the path broke v0.13.0 and v0.13.1; v0.14.0 shipped no Windows zip, MSI, or checksum. v0.12.2 is the last earlier release that carries them.
  • Drift is caught before a release. Every Windows build checks deploy/installer/dlls.wxs against the bundled DLL set, and a weekly pipeline schedule on the default branch runs build-windows-amd64 + build-windows-msi, so an MSYS2 change surfaces between releases. Contract: ci-runners.md, windows-build.md.
  • RUN_WINDOWS=1 forces a Windows run on any ref ("Run pipeline" → Variables, or git push -o ci.variable=RUN_WINDOWS=1); the workflow rules admit such a pipeline anywhere.
  • release-publish still links defensively. Its Windows-job dependencies are declared needs: optional: true, and gitlab-release.sh uploads + links a Windows asset only when its file is present — so a Release entry never carries a dangling link.

Patch releases and maintenance branches

Only the newest minor line gets patch releases. Once vX.(Y+1).0 ships, vX.Y gets no more patches; upgrading is the fix.

A patch is cut from main like any release when main holds nothing beyond the last release. When main has unreleased work that must not ship in the patch, the patch comes from a maintenance branch release-X.Y, created on demand from the vX.Y.0 tag (or reused if an earlier patch created it):

  1. Fix main first. Each fix lands on main through a normal MR, with its [Unreleased] CHANGELOG entry, so main never lacks a fix that shipped.
  2. Backport. Cherry-pick the fixes into release-X.Y through an MR targeting that branch, with the same entries under its [Unreleased]. Anything else the release pipeline needs on that line (for example a Windows DLL inventory fix) is backported the same way.
  3. Cut from the branch. Run the release flow below with IIIRIS_RELEASE_FROM=release-X.Y; the release MR targets release-X.Y, and the tag goes on its merge commit there.
  4. Record it on main. After the tag, an MR on main moves the shipped entries out of [Unreleased] into a matching ## [vX.Y.Z] - YYYY-MM-DD section, so the next release's notes don't list them again.

v1.0.1 was the first release cut this way, from release-1.0.

Release notes

The GitLab Release description is sourced from CHANGELOG.md: the body of the ## [vX.Y.Z] - YYYY-MM-DD section is extracted (heading line stripped) by scripts/gitlab-release.sh and posted as the Release description. The tag annotation contributes a one-line supplemental summary rendered above the CHANGELOG content.

This makes CHANGELOG.md the single source of truth for release content. Tag annotations are a hook, not the body.

Rollback

Forward-only. A bad release is fixed by cutting a new patch release with the revert (or fix). :latest re-points forward on the next release.

Published tags and container images are never deleted. Deployments that pinned a bad version need a clean upgrade path, not a 404. The operational impact of a registry delete (every deployment pulling the bad tag fails) is worse than the impact of the bad release itself in nearly all scenarios.

If a release is severe enough that it must not be used at all, the appropriate response is:

  1. Cut the patch release with the revert. Document the issue in CHANGELOG.md under the new version.
  2. Communicate (whatever channels apply) that operators should upgrade to the patch.
  3. Optionally, add a note to the bad release's GitLab Release entry pointing at the patch.

Recorded exception — v0.13.0 and v0.13.1 (deleted 2026-09-21). Both git tags and all twelve container image tags (:v0.13.x, -debian, and the per-arch tags) were deleted at the maintainer's direction. The rule above still stands; this is the only departure from it. What made these two different: both release pipelines failed on the Windows path before release-publish, so neither had a GitLab Release entry, published binaries, or release notes on the Releases page, and v0.14.0 — which contains all of their changes — was already published. The deletion was checked beforehand to share no manifest digest with any retained tag. CHANGELOG.md keeps both versions as [YANKED] stubs pointing at v0.14.0, where their changes are recorded. Tags matching v* remain protected; deleting one requires a Maintainer acting through the API or UI.

How to cut a release

The maintainer flow, end to end:

  1. Confirm [Unreleased] in CHANGELOG.md accurately reflects what's shipped since the last release. Edits to [Unreleased] go in normal feature/fix MRs, not at release time.
  2. Pick a version per Versioning.
  3. Run scripts/cut-release.sh vX.Y.Z (with IIIRIS_RELEASE_FROM=release-X.Y for a patch from a maintenance branch; see Patch releases). The script:
  4. Validates the version format, working tree, and current branch.
  5. Rewrites CHANGELOG.md: renames [Unreleased] to [vX.Y.Z] - YYYY-MM-DD; inserts an empty [Unreleased] section above.
  6. Commits on release/vX.Y.Z, pushes, opens an MR via the glab-mr flow.
  7. Review and merge the release MR.
  8. Tag the merge commit with a signed annotated tag:
    git checkout main && git pull    # or release-X.Y
    git tag -s vX.Y.Z -m "one-line summary"
    git push origin vX.Y.Z
    
    The one-line message is what appears as the supplemental summary on the GitLab Release; the body comes from CHANGELOG.md.
  9. CI runs the release pipeline. Verify the GitLab Release entry, asset links, and :latest tag in the registry (it moves only for the newest release; see latest semantics).
  10. Confirm the Release entry exists and carries its asset links — check the entry itself, not just the pipeline: asset links are what operators consume, including the Windows zip and MSI.

Out of scope (deliberately)

  • Image signing (cosign), SBOM generation, provenance attestations. Supply-chain hygiene worth doing, but adds key-management and tooling surface that's better layered in a follow-up brief once this baseline is stable.
  • Mirroring to Docker Hub / GHCR / quay.io. GitLab Container Registry is the sole publication target.
  • Pre-release channels (-rc, -beta, nightlies). Only stable vX.Y.Z tags produce artifacts.
  • Auto-tagging from CI. The human runs cut-release.sh, reviews the MR, merges, and tags. Pushing a tag is the explicit "ship this" gesture; CI does not infer it.
  • Multi-registry mirroring or operator-facing release metadata feeds (RSS, JSON manifest). Operators consume the GitLab Releases UI directly.