ci(release): goreleaser auto-publishes to brew tap + scoop bucket#2
Open
frahlg wants to merge 1 commit into
Open
ci(release): goreleaser auto-publishes to brew tap + scoop bucket#2frahlg wants to merge 1 commit into
frahlg wants to merge 1 commit into
Conversation
Stops the manual bump-PR-after-every-release tax. On tag push, goreleaser: - uploads binaries to GitHub Releases (unchanged) - opens a commit on srcfl/homebrew-tap that bumps Formula/hugin-agent.rb - opens a commit on srcfl/scoop-bucket that bumps hugin-agent.json Auth: a new HOMEBREW_TAP_GITHUB_TOKEN repo secret holds a PAT with contents:write on both tap + bucket. Single token covers both because they're in the same org. The next release after this lands (v0.2.1) will be a live test of the auto-publish path. If anything's off, fix forward — old releases remain installable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4 tasks
frahlg
added a commit
that referenced
this pull request
May 13, 2026
Unblocks bundling hugin-agent as a sidecar in other Docker-native
products (forty-two-watts being the immediate consumer).
What lands:
Dockerfile (repo root)
Multi-stage build (golang:1.25-alpine → alpine:3.21). Runs as
non-root `hugin` user. Container-friendly defaults:
HUGIN_AGENT_HOST=0.0.0.0 (reachable from outside the container)
HUGIN_AGENT_PORT=19090
HUGIN_AGENT_CREDS=/var/lib/hugin-agent/creds.json
CMD --no-browser because there's no browser to open inside the
container. The pairing URL is printed to stderr; the parent
product's UI or `docker logs` surfaces it. /var/lib/hugin-agent
is a named volume so creds.json survives container restarts.
.goreleaser.yml
dockers: + docker_manifests: blocks for linux/amd64 + linux/arm64.
arm64 explicitly for Raspberry Pi installs (a big 42W use case).
Three tag aliases per release: vX.Y.Z, vX.Y, latest.
.github/workflows/release.yml
Adds packages: write permission and three pre-goreleaser steps:
QEMU setup, buildx setup, GHCR login (using GITHUB_TOKEN — no
extra secret needed for same-org GHCR publish).
README.md
New Docker section between Scoop and "From source", with a
docker-compose snippet showing the sidecar pattern.
The brew tap + scoop bucket auto-publish PR (#2) is independent;
both can land in either order. Same release tag drives all three
publishers (tarballs, image, brew/scoop) when both PRs are merged.
Co-authored-by: Fredrik <fredde@Fredrikemacmini.localdomain>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Removes the manual bump-PR step that was needed for v0.2.0 (homebrew-tap#1 + scoop-bucket#1). On the next tag push, goreleaser:
srcfl/homebrew-tapthat bumpsFormula/hugin-agent.rbsrcfl/scoop-bucketthat bumpshugin-agent.json⚠ Required setup before merging
Create a repo secret named
HOMEBREW_TAP_GITHUB_TOKENonsrcfl/hugin-agent:contents: writeonsrcfl/homebrew-tapANDsrcfl/scoop-bucketWithout this secret, the next release will fail at the brew/scoop publish step. The binaries themselves will still upload — GitHub Releases keeps working — but the tap and bucket won't auto-update.
Test plan
After merge:
v0.2.1, push.brew upgrade hugin-agentpicks up v0.2.1 within a few minutes.If something breaks, the old v0.2.0 release remains installable.