Skip to content

fix(ci): release.yml explicitly dispatches docker-publish.yml - #555

Merged
unohee merged 1 commit into
mainfrom
chore/docker-publish-auto-trigger
Sep 3, 2026
Merged

fix(ci): release.yml explicitly dispatches docker-publish.yml#555
unohee merged 1 commit into
mainfrom
chore/docker-publish-auto-trigger

Conversation

@unohee

@unohee unohee commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

GHCR images have never been auto-published for this repo — confirmed via the Actions API: docker-publish.yml shows zero runs, ever, across every prior release (v0.21.1–v0.21.5). Root cause: release.yml's gh release create runs under the default GITHUB_TOKEN, and GitHub's loop-prevention rule means a GITHUB_TOKEN-authored event never triggers another workflow's on: trigger — so docker-publish.yml's on: release: published silently never fired.

Fix: release.yml now explicitly dispatches docker-publish.yml via gh workflow run (exempt from the no-cascade rule) with the version as an input; docker-publish.yml uses docker/metadata-action's value= override so that dispatch produces the same semver + latest tags a native release event would, instead of falling back to a bare branch tag. No new secret required.

Verified live (not just reasoned about): dispatched this branch's docker-publish.yml with version=0.21.6 — the resulting image was tagged 0.21.6, 0.21, and latest correctly.

Test plan

  • Test-dispatched from this branch with -f version=0.21.6, confirmed DOCKER_METADATA_OUTPUT_TAGS includes 0.21.6 / 0.21 / latest
  • Bare workflow_dispatch (no version) still falls back to the branch tag — unchanged from before
  • N/A: no application code touched (workflow YAML only)

GITHUB_TOKEN-authored events (the \`gh release create\` in release.yml)
never trigger other workflows — a GitHub Actions loop-prevention rule.
docker-publish.yml's \`on: release: published\` trigger has therefore
never fired once, for any prior release (confirmed via the Actions API:
zero runs). release.yml now dispatches it explicitly with the version,
so the resulting image gets real semver + latest tags instead of
falling back to a bare :main branch tag.
@unohee
unohee merged commit 23a7a3e into main Sep 3, 2026
8 checks passed
@unohee
unohee deleted the chore/docker-publish-auto-trigger branch September 3, 2026 08:12
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.

1 participant