Skip to content

Build PHP natively once and promote tested digests - #140

Merged
dbpolito merged 2 commits into
masterfrom
ci/native-tested-image-promotion
Nov 14, 2026
Merged

dbpolito merged 2 commits into
masterfrom
ci/native-tested-image-promotion

Conversation

@dbpolito

@dbpolito dbpolito commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Purpose

Replace separate QEMU publication builds with native amd64/arm64 builds and tests, then manifest-only promotion of exactly those tested images.

  • Preserve the 28-tag runtime matrix. Only base builds force-pull upstream PHP; nginx/node keep the Docker-driver local parent. Assert the tested base ID is unchanged and its full layer chain is inherited.
  • Stage immutable tested IDs only on trusted master runs. Validate all 56 current-attempt digest records before changing stable tags; dispatch WordPress, SQL Server and Swoole only after all manifests succeed.
  • Preserve weekly cron and non-cancelling releases. Partial reruns fail closed; rerun the whole workflow. Stable updates remain non-transactional across tags.
  • Add actionlint, the real template-generator check, and publication contracts covering missing/wrong/duplicate metadata and exact tested IDs.

Verification boundary

CI run 43619676090 passed on head 2d61cea42b596ec4a2c703f7de172a4b0180cc73: all 24 native groups (12 amd64 + 12 arm64), 56 PHP runtime image suites, all 32 derived-parent ancestry assertions, 16 unit/contracts tests, actionlint, and generator verification.

Publication is not only mocked: the production staging/manifest helper passed a real ephemeral loopback-registry roundtrip with two synthetic tags on both platforms, verifying final manifest membership and original local config digests. The full 28-tag set is tested with mocked Docker commands. Docker Hub credentials/pushes, release-metadata upload/download, stable publication and downstream dispatch remain deliberately unexercised on this PR; all release steps were skipped and no release metadata was uploaded. Normal buildx .dockerbuild diagnostic artifacts remain enabled.

No production images were published, no downstream dispatches were sent, and this PR is not merged.

@dbpolito

Copy link
Copy Markdown
Member Author

Independent review passed: reran all 16 contract/unit tests and the real loopback-registry roundtrip. Actual staging pushes and manifest-only promotion preserved the original config digests for both fixture tags and architectures. Reviewed current-attempt artifact layout, all-28-tag metadata validation, same-job derived-parent handling, and downstream needs: publish ordering. Exact-head CI is green for all 24 native groups.

Unlike the WordPress/Swoole helpers, this publisher relies on the architecture/image-ID validation at staging and trusted immutable digest artifacts rather than a second remote-platform preflight. No blocking defect identified in that trust boundary. Production Docker Hub credentials, GitHub release-artifact transfer and actual downstream dispatch remain intentionally untested until an authorized default-branch rollout. No merge or production publication performed.

@dbpolito
dbpolito merged commit 6de6cb9 into master Nov 14, 2026
27 checks passed
@dbpolito
dbpolito deleted the ci/native-tested-image-promotion branch November 14, 2026 17:33
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