Skip to content

Releases and container images

How versions, tags, GitHub releases and GHCR images are produced.

Updated

Pick an image

Images are published to GitHub Container Registry as ghcr.io/sandrinodm/logbrook, and since 0.3.0 the web UI as ghcr.io/sandrinodm/logbrook-ui with the same tags. Each release is one multi-platform image per component for linux/amd64 and linux/arm64, with dependency notices, an SBOM and build provenance. Docker picks the right platform for your host.

Tag Meaning
0.5.0 The release version, without the Git tag’s v prefix
sha-<full-commit> The source commit of that release
latest Updated only when the maintainer selects it, and only for a stable version

Pull a version:

docker pull ghcr.io/sandrinodm/logbrook:0.5.0

To get the same image every time, pull by digest. docker pull prints the digest, and the GitHub release notes include a docker pull command:

docker pull ghcr.io/sandrinodm/logbrook@sha256:<digest>

The image carries its version in the org.opencontainers.image.version label. Releases are listed on the GitHub releases page.

Versioning

Versions follow SemVer. The release workflow keeps five version fields in agreement:

  • the root Cargo.toml
  • the application’s entry in Cargo.lock
  • the lockfile fingerprint in THIRD_PARTY_NOTICES.txt
  • the default image version in Dockerfile
  • info.version in src/openapi.json

The Git tag is the version with a v prefix, for example v0.2.0. Prerelease versions such as 0.3.0-rc.1 produce a GitHub prerelease and can’t be marked latest.

How a release is made

The rest of this page is for maintainers. The manual Release GitHub Actions workflow (create-release.yml) sets the application version, creates and pushes the Git tag, verifies and publishes the container image, and creates a GitHub release with generated notes. Pushes and pull requests run verification only.

  1. Push your changes to main

    Commit and push everything that should be in the release.

  2. Run the workflow

    Open Actions → Release → Run workflow and select main.

  3. Choose a version request

    Use current to release the version already in Cargo.toml, or one of the values below. Write explicit versions without a leading v.

  4. Decide on latest

    Enable Also mark a stable release as latest to update both the GHCR latest tag and GitHub’s latest release.

Version request Result when Cargo.toml contains 0.2.0
current Release 0.2.0 without a version bump
patch Release 0.2.1
minor Release 0.3.0
major Release 1.0.0
0.3.0-rc.1 Release that exact prerelease version

The workflow rejects downgrades, build metadata such as +build.1, and versions whose tag already exists. To promote a prerelease, enter its stable version explicitly. Commit messages never choose the increment; you do.

What happens:

  1. A read-only job prepares the version patch. A separate job with write access checks that the patch changes only the five fields and commits it as chore(release): v<version>. For current there is no version commit.
  2. The commit and the annotated tag go up together in one atomic, non-forced push. If main moved on or the tag exists, the run fails instead of overwriting anything.
  3. The full Verify workflow runs for that commit, including native container builds and smoke tests for both architectures.
  4. After every check passes, the OCI archives that verification built and tested are published to GHCR by digest and combined into a multi-platform image without rebuilding.
  5. The last job creates the v<version> GitHub release with generated notes and a docker pull command.

Only one release runs at a time.

Preview a version locally

cargo xtask release-version --dry-run current
cargo xtask release-version --dry-run patch
cargo xtask release-version --dry-run 0.2.0-rc.1

This prints JSON with the previous version, the target version, the tag, and whether any file would change. Nothing is committed, tagged, pushed or published.

Retry a failed release

Use Re-run failed jobs in the original run. The tag is pushed before verification, so a failed build leaves the tag in place without a GitHub release. Don’t delete or move the tag.

If the fix needs code changes, commit it and start a new release with a new version. Re-running all jobs, or starting current again, fails on the existing tag. CI keeps OCI artifacts for seven days; after that, release a new version instead of replacing a published image.

Publish an existing tag

The Release image workflow (release.yml) verifies and publishes an existing, pushed tag that matches the root application version. It doesn’t create the tag or a GitHub release. The error couldn't find remote ref refs/tags/v0.2.0 means the tag doesn’t exist on the remote; run Release instead.

Make the first package public

GHCR packages start out private. After the first successful release, open the package’s Package settings, find Change visibility, and choose Public to allow anonymous pulls.

Next steps

Type to search…

↑↓ navigate↵ selectEsc close