Skip to content

feat: publish the image for linux/arm64 as well as linux/amd64 - #19

Merged
robinbowes merged 1 commit into
mainfrom
ci/arm64-image
Nov 11, 2026
Merged

robinbowes merged 1 commit into
mainfrom
ci/arm64-image

Conversation

@robinbowes

Copy link
Copy Markdown

The image was amd64 only (as upstream's was), so the action failed on arm64 runners with no matching manifest for linux/arm64/v8. This builds it for both architectures on native runners.

release.yml:

  • pin-image is split into three jobs:
    • pin-prepare: finds the release PR, brings it up to date with main, decides whether to build (unchanged logic).
    • pin-build: matrix on ubuntu-latest and ubuntu-24.04-arm; each builds with --provenance=false and the revision label, and pushes release-pr-<arch>.
    • pin-commit: checks both per-arch images carry the expected revision, merges them into one index with docker buildx imagetools create, and commits the index digest to action.yml.
  • verify (new, before tagging): matrix on both runners; pulls the pinned index natively, checks that architecture's revision label against the release commit, and smoke tests it.
  • publish: checks the index holds exactly linux/amd64 linux/arm64, tags it X.Y.Z and X, confirms both tags resolve to the pinned digest, and moves vX.

commitlint.yml: the source-build commitlint job runs on both runners; the npm cache key includes runner.arch.

commitlint-from-published-image stays amd64 only here: it runs the image action.yml pins, which is amd64 only until this is released. An arm64 leg for it can follow the release.

As a feat:, merging this opens a 7.1.0 release PR.

Checked locally: jactionlint --online, prek run. The pin-build/pin-commit image steps were rehearsed against a local registry: both architectures built with the revision label, merged into an index holding exactly linux/amd64 linux/arm64, a retag kept the digest, and the index ran natively as x64 and (emulated) arm64 on Node v26.13.0. The workflow itself first runs when this merges.

🤖 Generated with Claude Code

The image was amd64 only, so the action failed on arm64 runners with
"no matching manifest for linux/arm64/v8".

The release PR's image is now built natively on ubuntu-latest and
ubuntu-24.04-arm, each pushed as release-pr-<arch>, then merged into
one index whose digest action.yml pins. Before tagging a release, a
verify matrix pulls the pinned index on each architecture, checks its
revision label against the release commit and smoke tests it; publish
checks the index holds both platforms and that the new tags resolve to
the pinned digest.

The commitlint workflow's source-build job also runs on arm64, with the
npm cache keyed by architecture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robinbowes
robinbowes merged commit f609007 into main Nov 11, 2026
6 checks passed
@robinbowes
robinbowes deleted the ci/arm64-image branch November 11, 2026 16:48
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.

1 participant