Skip to content

Fix #89: deterministic pinned tag on release + verify it published to ghcr - #90

Merged
wolffcatskyy merged 1 commit into
mainfrom
fix/ghcr-publish-verification
Jul 21, 2026
Merged

Fix #89: deterministic pinned tag on release + verify it published to ghcr#90
wolffcatskyy merged 1 commit into
mainfrom
fix/ghcr-publish-verification

Conversation

@wolffcatskyy

Copy link
Copy Markdown
Owner

Fixes #89 — the ghcr.io pinned version tag lagging behind GitHub releases (latest was current at 3.7.1 but the newest pinned tag was 3.6.0).

Root cause

The docker/metadata-action type=semver tags only populate when the workflow run's ref is the git tag. On a release: published event the ref is the tag, so this normally works — but if the release-triggered run failed or never fired, the only run that published anything was the push to main, which emits just the latest tag (and branch tags), never a versioned/pinned tag. That's exactly the observed symptom: latest current, pinned stale.

Fix

  1. Deterministic pinned tag on release. A new Compute release version tag step strips the leading v from release.tag_name, and a type=raw,value=${{ steps.relver.outputs.version }},enable=${{ github.event_name == 'release' }} entry guarantees the versioned tag is applied on every release regardless of ref parsing.
  2. Fail loudly if it didn't land. A new post-push Verify pinned tag is published on registry step runs docker buildx imagetools inspect against the pinned tag (with a few retries) and fails the release if the tag isn't visible on ghcr — so a silent gap like [Bug]: ghcr.io image outdated (3.6.0) vs latest release (3.7.1) #89 can't recur unnoticed.

YAML validated. Note: this prevents recurrence; getting 3.7.1 onto ghcr right now still requires re-running the release publish for v3.7.1, which I'm handling separately.

@wolffcatskyy
wolffcatskyy merged commit 754386f into main Jul 21, 2026
3 checks passed
@wolffcatskyy
wolffcatskyy deleted the fix/ghcr-publish-verification branch July 21, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ghcr.io image outdated (3.6.0) vs latest release (3.7.1)

1 participant