Skip to content

fix(ci): always log in to Docker Hub on release tags#147

Merged
mslipper merged 1 commit into
mainfrom
mslipper/goreleaser-dockerhub-secrets
May 25, 2026
Merged

fix(ci): always log in to Docker Hub on release tags#147
mslipper merged 1 commit into
mainfrom
mslipper/goreleaser-dockerhub-secrets

Conversation

@mslipper

Copy link
Copy Markdown
Contributor

The prerelease guard !contains(github.ref, '-') always evaluated false for iron-token-broker tags because the ref prefix itself contains a dash, so the Docker Hub login step was silently skipped on every broker release. Dropped the guard on both jobs so prereleases also push, and gated the latest Docker tag on .Prerelease in both goreleaser configs so RC builds don't clobber it.

The prerelease guard `!contains(github.ref, '-')` always evaluated false
for iron-token-broker tags because the ref prefix itself contains a dash,
silently skipping the Docker Hub login. Drop the guard on both jobs so
prerelease tags also push images, and gate the `latest` Docker tag on
`.Prerelease` in the goreleaser configs so RC builds don't clobber it.
@mslipper mslipper merged commit 4d96a9f into main May 25, 2026
7 checks passed
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