Repository navigation
Publish multi-arch container images to GHCR on release - #83
Merged
Merged
Conversation
The release workflow now builds an aarch64-unknown-linux-musl artifact
(also a useful standalone asset for glibc-free arm64 distros) and adds
a docker job that stages the two static musl binaries by architecture
and pushes a linux/amd64 + linux/arm64 image to ghcr.io/lance0/ttl,
tagged {version}, {major}.{minor}, and latest.
Dockerfile.release packages the prebuilt binaries instead of compiling
under QEMU emulation, keeping the docker job to ~2 minutes. Publishing
uses the built-in GITHUB_TOKEN (packages: write) - no registry
credentials to manage.
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
Completes the container story from #82: releases now publish a ready-to-pull multi-arch image to
ghcr.io/lance0/ttl, tagged{version},{major}.{minor}, andlatest.Design
Dockerfile.releasepackages the prebuilt static musl binaries from the existing build matrix (staged per-arch viaARG TARGETARCH), so the docker job adds ~2 minutes to a release instead of 40+ minutes of emulated compilationGITHUB_TOKEN(packages: write), sidestepping the Docker Hub secrets question — a Docker Hub mirror remains optional in the roadmapaarch64-unknown-linux-muslbuild target (viacross, same as the existing aarch64-gnu entry): feeds the arm64 image layer and ships as a standalone release asset for glibc-free arm64 distros. The existing aarch64-gnu asset is unchanged, soinstall.sh/AUR/tap are unaffectedVerification
aarch64-unknown-linux-muslcross-compiles clean locally (cross0.2.5, the version CI pins) — static, stripped ELF confirmedDockerfile.releasebuilt locally against the real staged x86_64-musl binary: image runsttl 0.19.1 --versionand parses args correctly on Alpinesetup-qemu-action; worth a glance at the docker job on the first v0.20.0 release run