Repository navigation
Build arm64 images natively instead of emulating them - #10
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 5, 2026 07:34
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.
Same approach as flownative/docker-php#70 and flownative/docker-beach-php#46.
preparedetermines the latest release tag oncebuild: matrix PHP branch × user (composer,root) × platform,linux/amd64onubuntu-24.04,linux/arm64onubuntu-24.04-arm. Each job reads the PHP version from theorg.opencontainers.image.versionlabel ofharbor.flownative.io/docker/php:<branch>and pushes by digest only.mergecombines 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, ascomposer2orcomposer2-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:
actionlintis clean; the merge step was run locally against fake artifacts, including a missing platform.Test run (
workflow_dispatchon 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;composer2runs ascomposer,composer2-rootasroot, 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)