ci(goreleaser): migrate to dockers_v2 + homebrew_casks#372
Merged
Conversation
GoReleaser deprecated `dockers`/`docker_manifests` (-> dockers_v2) and
`brews` (-> homebrew_casks); these keys are removed in GoReleaser v3.
Mirrors the swarmcli-be change so OSS releases stop warning too.
- dockers_v2: one multi-arch (linux/amd64,arm64) entry replaces the two
per-arch `dockers` blocks + `docker_manifests`. Dockerfile.release now
consumes ${TARGETPLATFORM} (single multi-platform buildx build).
- :latest is now guarded to stable releases only ({{ if not .Prerelease }}).
- homebrew_casks replaces the deprecated `brews` formula, with a
macOS-guarded postflight that strips the Gatekeeper quarantine xattr
(GoReleaser binaries are not Apple-notarized). The formula-only
`license: Apache-2.0` field is dropped — Homebrew casks have no license
stanza. conflicts_with is the symmetric `cask: swarmcli-be`.
- Pin goreleaser-action to '~> v2.12' (dockers_v2 floor; casks need v2.10).
Validated with `goreleaser check` (no deprecations) and a snapshot build.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
c4f5588 to
a49343e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Mirrors Eldara-Tech/swarmcli-be#157 on the OSS repo so its releases stop emitting the GoReleaser deprecation notices (
dockers/docker_manifests→dockers_v2,brews→homebrew_casks; removed in GoReleaser v3).Changes
dockers_v2: one multi-arch (linux/amd64,arm64) entry replaces the two per-archdockersblocks +docker_manifests.Dockerfile.releasenow usesARG TARGETPLATFORM+COPY ${TARGETPLATFORM}/swarmcli.:latestguarded to stable releases only ({{ if not .Prerelease }}) — an-rctag no longer moves:latest.homebrew_casksreplacesbrews, with a macOS-guardedpostflightquarantine strip (GoReleaser binaries are not Apple-notarized).conflicts_withis the symmetriccask: swarmcli-be. The formula-onlylicense: Apache-2.0field is dropped — Homebrew casks have no license stanza (the in-repo LICENSE is unaffected).goreleaser-actionto~> v2.12.Behavioral changes (C1)
:latestis no longer pushed from prerelease tags.Verification
goreleaser check— clean, zero deprecations.goreleaser release --snapshot --clean --skip=publish,docker— binaries build; cask renders with correctbinary "swarmcli",conflicts_with cask: ["swarmcli-be"], and the quarantinepostflight.${TARGETPLATFORM}COPY) is validated by the next-rcrelease run.Required follow-up
tap_migrations.json+ staleFormula/*.rbremoval inEldara-Tech/homebrew-tapso existingbrew installusers transition to the cask (covers bothswarmcliandswarmcli-be).🤖 Generated with Claude Code