Repository navigation
ci(release): publish nix2container binaries on release tags (RIG-9273) - #6
Merged
mattwilkinsonn merged 5 commits intoNov 14, 2026
Conversation
Build linux-amd64, linux-arm64 and darwin-arm64 binaries with CGO disabled, then attach them and SHA256SUMS to a GitHub Release. The release job runs only on v*-rigel.N tags minted by release-tag.yaml, and checks the tag against .github/rigel-version. Pull requests run the build matrix only. Add an hk pre-push hook so rjc's hook gate sees a configured check. Co-authored-by: Matt Wilkinson <matt@rigel.build>
The lint job used golangci-lint-action@v3 with version latest. That resolved to v1.64.8, built with Go 1.24, and failed on the Go 1.26 runner with 'file requires newer Go version go1.26'. Pin the action to v9.3.0 by SHA and the linter to v2.15.0, the newest v2 release whose go.mod targets Go 1.26. The -E gofmt arg still resolves under v2. Co-authored-by: Matt Wilkinson <matt@rigel.build>
golangci-lint v2 rejects '-E gofmt' with 'gofmt is a formatter', so the lint job failed at config load even on the pinned v2.15.0 binary. Move the gofmt check into a version 2 .golangci.yml, pin the linter set to standard to match the v1 default, and drop the args line. Co-authored-by: Matt Wilkinson <matt@rigel.build>
- Build release binaries with Go 1.26.11 via setup-go go-version, not the go.mod floor (go 1.24.0), so binaries carry a current stdlib. - Add workflow_dispatch with an existing tag input to backfill a release. - Move the tag/version guard into a guard job the build depends on, so a mismatched tag fails before the matrix runs. - Add a concurrency group so a manual re-run cannot race a first run. - Pin checkout and setup-go in the lint job to the release SHAs and read the Go version from go.mod. - Replace the yq parse check in the pre-push hook with actionlint, and add actionlint to the devShell. Co-authored-by: Matt Wilkinson <matt@rigel.build>
… (RIG-9273) - Key concurrency on the release tag so a dispatch backfill and a tag push for the same tag serialize. - Check out refs/tags/<tag> on dispatch, so a non-tag input fails at checkout rather than creating a release at another branch's SHA. - Use go-version 1.26 with check-latest, so the release toolchain picks up patch releases without a manual bump. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Author
rigel-mintaka
marked this pull request as ready for review
November 11, 2026 06:10
Author
|
Handoff from deps to go-migration (lane fold, 2026-11-13). Reviewed, ready. Next: merge; then tag a release and do the flake package (RIG-9273) and the nix2container upstream sync (RIG-9206, local 2e82d2d). |
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
release.yml: av*-rigel.*tag builds nix2container for linux-amd64, linux-arm64 and darwin-arm64 (CGO_ENABLED=0), then publishes the binaries andSHA256SUMSto a GitHub Release.check-latest, so they pick up patch releases. Lint readsgo.mod(Go 1.24), so the two jobs use different toolchains on purpose.guardjob refuses a tag that differs fromvplus.github/rigel-versionbefore any build runs.workflow_dispatchtakes an existingtaginput and checks outrefs/tags/<tag>, so a non-tag input fails at checkout. A tag that predates this workflow can be backfilled.contents: writeis granted only to thereleasejob.version: latesthad resolved to v1.64.8, which fails on Go 1.26. Add.golangci.yml(v2) enabling gofmt as a formatter, replacing the removed-E gofmt.hk.pklpre-push runs actionlint on the two workflows this PR owns. actionlint is added to the devShell.Verification
Risks
v1.1.0-rigel.1needs a version bump or a dispatch backfill. The dispatch path is not yet exercised.Refs RIG-9273
Co-authored-by: Matt Wilkinson matt@rigel.build