Skip to content

Build arm64 images natively instead of emulating them - #10

Merged
kdambekalns merged 3 commits into
mainfrom
task/native-arm64-builds
Nov 5, 2026
Merged

kdambekalns merged 3 commits into
mainfrom
task/native-arm64-builds

Conversation

@kdambekalns

@kdambekalns kdambekalns commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Same approach as flownative/docker-php#70 and flownative/docker-beach-php#46.

  • prepare determines the latest release tag once
  • build: matrix PHP branch × user (composer, root) × platform, linux/amd64 on ubuntu-24.04, linux/arm64 on ubuntu-24.04-arm. Each job reads the PHP version from the org.opencontainers.image.version label of harbor.flownative.io/docker/php:<branch> and pushes by digest only.
  • merge combines the two digests of each PHP version and user into one manifest list and tags it (8.4, 8.4.27) in Docker Hub and Harbor, as composer2 or composer2-root.

The digest artifacts are named digest-<version>-<user>-<platform>. Should docker-php publish a new version between the jobs, the merge finds only one digest for that version and fails instead of combining images of different PHP versions.

Tested: actionlint is clean; the merge step was run locally against fake artifacts, including a missing platform.

Test run (workflow_dispatch on this branch, https://github.com/flownative/docker-composer/actions/runs/41985913325): 5 min (before ~4). 16 build jobs of 1.3–2.6 min each, merge 1.9 min. All tags carry amd64 and arm64; composer2 runs as composer, composer2-root as root, version label correct.

Before: ~4 min per run. The gain is small here; the change mainly keeps the four repositories alike.

Refs OPS-8R (https://minka.flownative.com/go/card/OPS-8R)

Like in docker-php and docker-beach-php, every platform now builds on a
native runner of its own (ubuntu-24.04 and ubuntu-24.04-arm) and pushes
by digest only; a merge job combines the digests into one manifest list
per PHP version and user and tags it in both registries.

Each build job reads the PHP version from the label of the newest
harbor.flownative.io/docker/php image itself and names its digest
artifact after it, so the merge fails instead of combining images of
different PHP versions.

Refs OPS-8R

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kdambekalns kdambekalns self-assigned this Nov 5, 2026
@kdambekalns
kdambekalns marked this pull request as ready for review November 5, 2026 07:34

@kdambekalns kdambekalns left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kdambekalns
kdambekalns merged commit 00baefd into main Nov 5, 2026
@kdambekalns
kdambekalns deleted the task/native-arm64-builds branch November 5, 2026 07:50
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