You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 51a14ab
Browse filesBrowse the repository at this point in the historyBrowse files
Use shared Bash image CI from kool-dev/action (#141)
* Reduce registry reads and recover publication from tested artifacts
* Remove publication recovery and retain request reductions only
* Use shared Bash native-image CI from kool
* Pin shared image tooling from kool-dev/action
* Call the publisher action directly and trim repeated documentation
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,13 +142,15 @@ Run `bash scripts/test-image.sh 8.5` to test a locally built image (replace the
142
142
143
143
CI builds and tests all 28 variants once per architecture on native `ubuntu-24.04` (amd64) and `ubuntu-24.04-arm` (arm64) runners: 24 build/test groups. Only base builds pull their upstream PHP image fresh. Derived builds do not force-pull `kooldev/php`; the Docker driver keeps the fresh local base available to nginx/node builds. Before derived runtime tests, CI verifies that the local base still has its tested image ID and that its entire layer chain prefixes the derived image's layers. Tests use the build's immutable local image ID.
144
144
145
-
Pull requests, forks, and manual feature-branch runs never log in, stage images on Docker Hub, upload release metadata, publish stable images, or dispatch. Only trusted `master` runs (push, weekly schedule, or manual) stage the tested IDs as `kooldev/php:ci-php-RUN_ID-RUN_ATTEMPT-VARIANT-ARCH`. These temporary tags do not overwrite stable architecture tags. Staging tags remain in the registry; cleanup is not part of this workflow.
145
+
Pull requests, forks, and manual feature-branch runs never log in, stage images on Docker Hub, upload release metadata, publish stable images, or dispatch. Only trusted `master` runs (push, weekly schedule, or manual) stage the tested IDs under run/attempt-scoped tags. These temporary tags do not overwrite stable architecture tags. Staging tags remain in the registry; cleanup is not part of this workflow.
146
146
147
-
Each tested tag uploads its registry digest in a `php-RUN_ID-RUN_ATTEMPT-VARIANT-ARCH` artifact. The final publication job requires every build/test group to succeed and downloads only the current attempt's metadata. It validates all 28 tags, exactly amd64 and arm64 per tag, repository, run scope, and digest format before changing any stable tag. Stable manifests reference those recorded digests; publication does not rebuild images or use QEMU. Dispatch starts only after every stable manifest succeeds.
147
+
CI uses [shared Bash/`jq` actions](https://github.com/kool-dev/action/blob/master/image-ci.md), pinned in the workflow. PHP builds and runtime tests stay here.
148
+
149
+
Each native group uploads tested IDs/platforms and push digests in an `images-RUN_ID-RUN_ATTEMPT-GROUP-ARCH` artifact. The final publication job requires every group to succeed and downloads only the current attempt's metadata. It validates all 28 tags, exactly amd64 and arm64 per tag, repository, scope and digest format before changing any stable tag. Stable manifests reference those recorded digests; publication never rebuilds or uses QEMU. Dispatch starts only after every stable manifest succeeds.
148
150
149
151
**Rerun the entire workflow**, not just failed jobs: a new attempt cannot reuse metadata from an earlier attempt. Missing metadata fails closed before publication. Stable-tag updates across 28 tags are not a registry transaction: a registry failure during publication can leave a partially promoted release, but never triggers downstream dispatch. Investigate and rerun the whole workflow to recover.
150
152
151
-
Run `python3 -m unittest discover -s scripts -p 'test_*.py' -v` for the mocked publication and workflow contracts. `python3 scripts/registry_roundtrip.py` exercises real staging and manifest publication against an ephemeral loopback registry with tiny synthetic images for both platforms; it verifies the registry config digests against the original local image exports. It never pushes to Docker Hub and is not a PHP runtime test. CI also runs this registry test, actionlint, and the real template generator before native builds.
153
+
Shared release contract and real loopback-registry tests run in the tooling repository using Bash. This repository runs the actual template generator before native builds and executes the runtime tests against immutable local image IDs. Synthetic registry tests are not substitutes for native runtime coverage.
152
154
153
155
PHP owns the rebuild schedule. After publication it notifies WordPress, SQL Server, and Swoole via `docker-php-updated`. Swoole notifies OCI8 only after all its images are published, so OCI8 does not race its Swoole parents or rebuild twice for the same PHP refresh. PHPQA is discontinued and no longer receives rebuild notifications. Downstream repositories have no separate cron schedules. Failed notifications must be investigated and retried manually; an accepted dispatch is not confirmation of downstream publication.
0 commit comments