Repository navigation
feat(offload): add darwin and windows static archives - #603
Merged
Merged
Conversation
vvoland
reviewed
Nov 19, 2026
nicksieger
force-pushed
the
offload-static-mac-windows
branch
from
November 19, 2026 22:18
e896ed4 to
95afe22
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The substring-based version check can accept a binary from a different release, allowing an incorrect Darwin or Windows binary to pass verification under the requested release name.
1 open issue
What changed in this PR
Adds Offload static archives to the packaging pipeline, wrapping prebuilt release binaries to preserve macOS and Windows signatures rather than compiling from source.
Changes:
- Enables static packaging for macOS, Windows, and Linux on amd64 and arm64.
- Creates archives with top-level
cli-pluginsanddocdirectories plus SHA-256 checksum files. - Adds checksum, layout, platform, and version checks, running the plugin only for matching container platforms.
| File | Description |
|---|---|
pkg/offload/verify.Dockerfile |
Adds static archive verification. |
pkg/offload/scripts/pkg-static-build.sh |
Packages release binaries and documentation into archives with checksums. |
pkg/offload/Dockerfile |
Adds the release-binary context and static packaging stage. |
docker-bake.hcl |
Enables Offload static targets and expands supported platforms. |
Review effort: Balanced
vvoland
reviewed
Nov 19, 2026
nicksieger
force-pushed
the
offload-static-mac-windows
branch
from
November 20, 2026 16:43
2f8df5a to
8547922
Compare
nicksieger
marked this pull request as draft
November 20, 2026 16:55
crazy-max
reviewed
Nov 20, 2026
nicksieger
force-pushed
the
offload-static-mac-windows
branch
from
November 20, 2026 17:21
8547922 to
f00064e
Compare
nicksieger
marked this pull request as ready for review
November 20, 2026 17:22
crazy-max
reviewed
Nov 20, 2026
- static distro compiles from source with make ce-release under xx-go --wrap, as deb and rpm do
- archives the unsigned binary for every platform, no prebuilt release binaries
- tgz for darwin and linux, zip for windows, .sha256 next to each
- layout cli-plugins/ and doc/{LICENSE,README.md}, as merged in docker#571
- static stage gets the Go toolchain, build-env secret, COMMIT, BUILD and DATE
- verify-offload-static checks checksum, layout, platform and version
- build all distros + static
- add go-build stage on BUILDPLATFORM, golang has no darwin or windows image
- builder-static takes /usr/local/go from go-build instead of the target-platform go stage
- drop offload from PKG_DISTROS so it builds all DISTROS, including static
- restore the docker-bake.hcl copyright year
Signed-off-by: Nick Sieger <nick@nicksieger.com>
nicksieger
force-pushed
the
offload-static-mac-windows
branch
from
November 20, 2026 19:15
f00064e to
735cbdb
Compare
crazy-max
approved these changes
Nov 20, 2026
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
.tgzfor macOS and Linux and a.zipfor Windows, each with a.sha256file, atstatic/<os>/<arch>/docker-offload-plugin_<version>.{tgz,zip}.darwin/*andwindows/*toPKG_PLATFORMS_BASE.offload.offloadfromPKG_DISTROS, so Offload builds for every distro inDISTROS, includingstatic.cli-plugins/docker-offload[.exe]anddoc/{LICENSE,README.md}at the top level, with no<pkgname>/prefix.verify-offload-staticchecks each archive: checksum, layout, that the binary matches the platform in its path and contains the version. It runs the plugin only for an archive that matches the verify container's platform (linux). Signatures are not checked.The static stage compiles from source
Like the deb and rpm packages,
builder-staticcompiles from source: it uses the Go toolchain, thebuild-envsecret and theVERSION,COMMIT,BUILDandDATEargs, and runsmake ce-releaseunderxx-go --wrap. It checks the result withxx-verify --staticand archives it. It gets its Go toolchain from ago-buildstage on the build platform, because thegolangimage has no darwin or windows variant.The archives contain unsigned binaries on every platform. The darwin binaries are not signed or notarized, and the Windows binaries are not signed. Signing, if needed, has to happen outside this repo, after the archive is built.
Notes
doc/LICENSEanddoc/README.mdare copied from thesrcnamed context, and the build fails if either is missing.pkg-offload-staticalso produces linux.tgzarchives, andrelease-offloadnow lists all six platforms. Callers can pick platforms with--set <target>.platform=.... The deb and rpm targets still build only the platforms their distros support.release-offloadcopiessbom-build*.jsonandprovenance.jsonfor each platform directory it picks up, so static builds need attestations enabled, as for deb and rpm.🤖 Generated with Claude Code