Skip to content

Publish linux/arm64 feature images - #961

Merged
stephanos merged 14 commits into
mainfrom
stephanos/features-arm64
Nov 27, 2026
Merged

stephanos merged 14 commits into
mainfrom
stephanos/features-arm64

Conversation

@stephanos

@stephanos stephanos commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Publish feature images for amd64 and arm64. Native runners test each image by digest before CI publishes the final tags.

Why native runners

Allow running feature images on ARM.

Notes

PHP stays amd64-only because its runtime base lacks arm64 support.

@stephanos
stephanos marked this pull request as ready for review November 26, 2026 17:48
@stephanos
stephanos requested review from a team as code owners November 26, 2026 17:48
@stephanos
stephanos marked this pull request as draft November 26, 2026 17:58
@stephanos
stephanos marked this pull request as ready for review November 26, 2026 21:47
stephanos and others added 14 commits November 27, 2026 08:44
Publish every feature image for linux/amd64 and linux/arm64 so the suites
run natively on arm64 hosts.

- Dockerfiles download the Go toolchain for BuildKit's TARGETARCH instead
  of a fixed amd64.
- build-image --push-to builds all --platform values with docker buildx
  and pushes one multi-platform image per tag.
- After the tests pass, CI publishes both platforms with buildx and QEMU.
  push-images is removed; CI was its only caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build and test amd64 and arm64 on native runners instead of emulating
arm64 with QEMU. Each runner pushes its platform by digest, and a publish
job joins the digests under every tag with docker buildx imagetools,
following omes' rust-docker-images.yml.

build-image --push-to now pushes one platform by digest and writes the
digest to --digest-file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restore push-images and give it the publish step: it reads the per-platform
digest files and the tag list, checks that every expected platform is
present, and creates each tag from the digests with docker buildx
imagetools. The workflow's publish job now calls it instead of inline
shell. build-image still pushes each platform by digest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Build each platform once into a Docker-loadable OCI archive, test the
  loaded image by ID, check that ID against the archive's digest, and push
  the archive by digest with skopeo, so the published image is the one
  that passed the tests.
- Add a platforms input. PHP builds amd64 only: its spiralscout/php-grpc
  runtime base has no arm64 image.
- Default TARGETARCH to amd64 for the legacy builder; BuildKit still sets
  the real value.
- push-images rejects duplicate digests across platforms.
- Keep digest artifacts for seven days so the publish job can be re-run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow the per-platform shape of omes' rust-docker-images workflow: each
native runner pushes its image untagged by digest, the tests run against
that pushed digest, and the publish job tags the digests only after every
platform passed. This replaces the OCI archive, skopeo and the image ID
comparison, so the tested image is the published one without extra tools.
PR runs still build and test locally. Drop the TARGETARCH fallback; the
legacy Docker builder is not supported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@stephanos
stephanos force-pushed the stephanos/features-arm64 branch from 5775d64 to 8df0785 Compare November 27, 2026 15:44
@stephanos
stephanos merged commit c11cd88 into main Nov 27, 2026
84 of 85 checks passed
@stephanos
stephanos deleted the stephanos/features-arm64 branch November 27, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants