From 372632526358e05749e98c9bbd122d2e80b919d9 Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Wed, 21 Oct 2026 16:27:44 -0700 Subject: [PATCH 1/2] Boot-test every image before it gets a tag Weekly no-cache rebuilds pushed -latest without ever starting the image. Now each image is pushed by digest, booted by .github/scripts/smoke-test.sh (PHP version, extensions, non-root, healthy, serving PHP over HTTP for the frankenphp images), and only then tagged. A failing image leaves the existing tags alone and holds back the images built FROM it. Only the amd64 image is booted. The dry_run input from the ticket is not included: child jobs build FROM the parent's - tag, which a dry run never creates. ALI-1101 --- .github/scripts/smoke-test.sh | 124 +++++++++++++++++++++++++++ .github/workflows/build-and-push.yml | 124 ++++++++++++++++++++++----- README.md | 2 +- 3 files changed, 228 insertions(+), 22 deletions(-) create mode 100755 .github/scripts/smoke-test.sh diff --git a/.github/scripts/smoke-test.sh b/.github/scripts/smoke-test.sh new file mode 100755 index 0000000..a93ae56 --- /dev/null +++ b/.github/scripts/smoke-test.sh @@ -0,0 +1,124 @@ +#!/usr/bin/env bash +# Boots a built image and checks it does what its README promises, so a broken +# image never gets a floating tag. Run by build-and-push.yml between pushing an +# image by digest and tagging it; also runnable by hand: +# +# .github/scripts/smoke-test.sh +# .github/scripts/smoke-test.sh wordpress ghcr.io/aliasproject/php:8.4-frankenphp-wordpress 8.4 +# +# variant: cli | base | dev | wordpress | wordpress-dev +# cli runs php; no server +# base, dev the frankenphp Tier 1 extensions +# wordpress, wordpress-dev Tier 1 plus the WordPress extension set +# The frankenphp variants are booted and served over HTTP, so the PHP that is +# checked is the one embedded in the server (not the separate `php` binary). +set -euo pipefail + +if [ "$#" -ne 3 ]; then + echo "usage: $0 " >&2 + exit 2 +fi +variant=$1 +image=$2 +php_version=$3 + +tier1="pdo_mysql zip intl bcmath pcntl posix" +wordpress_ext="mysqli gd exif imagick redis igbinary soap" +case "$variant" in + cli) extensions="pdo_mysql zip intl bcmath pcntl" ;; + base | dev) extensions="$tier1" ;; + wordpress | wordpress-dev) extensions="$tier1 $wordpress_ext" ;; + *) echo "unknown variant: $variant" >&2; exit 2 ;; +esac + +fail() { echo "SMOKE TEST FAILED ($variant, $image): $*" >&2; exit 1; } + +# Shared checks on a PHP version string and a list of loaded extensions. +check_php() { + local version=$1 loaded=$2 ext + case "$version" in + "$php_version".*) ;; + *) fail "PHP version is '$version', expected $php_version.x" ;; + esac + for ext in $extensions; do + # Whole-word match, case-insensitive (get_loaded_extensions() and + # php -m disagree on case for some, e.g. "Zend OPcache"). + printf '%s\n' "$loaded" | tr ' ' '\n' | grep -qix "$ext" \ + || fail "extension '$ext' is not loaded" + done +} + +if [ "$variant" = cli ]; then + version=$(docker run --rm "$image" php -r 'echo PHP_VERSION;') + loaded=$(docker run --rm "$image" php -m | tr '\n' ' ') + check_php "$version" "$loaded" + uid=$(docker run --rm "$image" id -u) + [ "$uid" != 0 ] || fail "runs as root" + echo "ok: $image (PHP $version, uid $uid)" + exit 0 +fi + +fixture=$(mktemp -d) +name="smoke-$$" +cleanup() { + docker rm -f "$name" >/dev/null 2>&1 || true + rm -rf "$fixture" +} +trap cleanup EXIT + +# A page that reports what the server's own PHP looks like. The container user +# is not the runner's, so the fixture must be world-readable. +mkdir -p "$fixture/public" +cat > "$fixture/public/index.php" <<'PHP' +/dev/null + +health=starting +for _ in $(seq 1 60); do + state=$(docker inspect -f '{{.State.Status}}' "$name") + if [ "$state" != running ]; then + docker logs "$name" >&2 || true + fail "container is '$state', not running" + fi + health=$(docker inspect -f '{{if .State.Health}}{{.State.Health.Status}}{{else}}none{{end}}' "$name") + [ "$health" = healthy ] && break + sleep 2 +done +if [ "$health" != healthy ]; then + docker logs "$name" >&2 || true + fail "not healthy after 120s (health: $health)" +fi + +port=$(docker port "$name" 80/tcp | head -n1 | sed 's/.*://') +body=$(curl -fsS --max-time 10 "http://127.0.0.1:$port/") \ + || fail "GET / did not return 2xx" + +version=$(printf '%s\n' "$body" | sed -n 's/^VERSION=//p') +sapi=$(printf '%s\n' "$body" | sed -n 's/^SAPI=//p') +loaded=$(printf '%s\n' "$body" | sed -n 's/^EXTENSIONS=//p') +[ "$sapi" = frankenphp ] || fail "SAPI is '$sapi', expected frankenphp" +check_php "$version" "$loaded" + +uid=$(docker exec "$name" id -u) +[ "$uid" != 0 ] || fail "runs as root" + +# docker-configure ran at boot and rendered its snippets. +docker exec "$name" test -f /config/caddy/site.d/00-hardening.caddyfile \ + || fail "docker-configure did not render /config/caddy/site.d/00-hardening.caddyfile" +docker exec "$name" test -s /usr/local/etc/php/conf.d/app.ini \ + || fail "docker-configure did not render conf.d/app.ini" + +# Composer is baked into every frankenphp image. +docker exec "$name" composer --version >/dev/null 2>&1 || fail "composer is not runnable" + +echo "ok: $image (PHP $version, uid $uid, healthy)" diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 714faa4..433246e 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -127,24 +127,40 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push ${{ matrix.name }} + # Pushed by digest only (no tags yet): the image has to boot before it + # gets the floating tags, same as the frankenphp images below. + - name: Build and push by digest ${{ matrix.name }} + id: build if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, matrix.file) }} uses: docker/build-push-action@v7 with: context: ${{ matrix.context }} file: ${{ matrix.file }} - push: true platforms: ${{ matrix.platforms }} - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}-latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}-${{ github.sha }} + outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true # Scheduled runs rebuild from scratch: a cached layer would keep # last week's Alpine packages whenever the base image is unchanged. no-cache: ${{ github.event_name == 'schedule' }} cache-from: type=gha,scope=${{ matrix.name }} cache-to: type=gha,mode=max,scope=${{ matrix.name }} + - name: Smoke test ${{ matrix.name }} + if: ${{ steps.build.outcome == 'success' }} + run: | + tag="${{ matrix.tag }}" + .github/scripts/smoke-test.sh cli \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }}" \ + "${tag%%-*}" + + - name: Tag ${{ matrix.name }} + if: ${{ steps.build.outcome == 'success' }} + run: | + docker buildx imagetools create \ + -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }} \ + -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}-latest \ + -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.tag }}-${{ github.sha }} \ + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build.outputs.digest }} + # frankenphp base images, split by architecture across two native runners # instead of one QEMU multi-platform build. Measured from a real run: the # exact same install-php-extensions step took 258s on native amd64 vs @@ -240,17 +256,18 @@ jobs: # Exact artifact names: a missing arch fails here rather than # publishing a single-arch tag. - name: Download digest (amd64) + id: digest_amd64 if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/amd64 name: digest-fpbase-${{ matrix.version }}-amd64 - name: Download digest (arm64) if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/arm64 name: digest-fpbase-${{ matrix.version }}-arm64 - name: Set up Docker Buildx @@ -265,17 +282,38 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Boot the amd64 image (the runner's own architecture) before it gets + # any tag. A failure here leaves the existing floating tags untouched, + # and holds back the images built FROM this one (their jobs need this + # one to succeed). + - name: Checkout smoke test script + if: ${{ steps.digest_amd64.outcome == 'success' }} + uses: actions/checkout@v7 + with: + sparse-checkout: .github/scripts + + - name: Smoke test (amd64) + if: ${{ steps.digest_amd64.outcome == 'success' }} + run: | + .github/scripts/smoke-test.sh "base" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:$(find /tmp/digests/amd64 -type f -printf '%f')" \ + "${{ matrix.version }}" + - name: Create manifest list and push if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} working-directory: /tmp/digests run: | - # Exactly one amd64 and one arm64 digest. - test "$(ls | wc -l)" -eq 2 + # Exactly one amd64 and one arm64 digest (file name = digest). + test "$(find amd64 -type f | wc -l)" -eq 1 + test "$(find arm64 -type f | wc -l)" -eq 1 + amd64=$(find amd64 -type f -printf '%f') + arm64=$(find arm64 -type f -printf '%f') docker buildx imagetools create \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-latest \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ github.sha }} \ - $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${amd64}" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${arm64}" # frankenphp-dev and frankenphp-wordpress, same digest-split/native-arm64 # treatment as build-frankenphp-base and for the same reason: both FROM @@ -398,17 +436,18 @@ jobs: # wordpress that glob also matched wordpress-dev's digests, so the # -wordpress tags also carried the dev images. - name: Download digest (amd64) + id: digest_amd64 if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/amd64 name: digest-fpdep-${{ matrix.version }}-${{ matrix.variant }}-amd64 - name: Download digest (arm64) if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/arm64 name: digest-fpdep-${{ matrix.version }}-${{ matrix.variant }}-arm64 - name: Set up Docker Buildx @@ -423,17 +462,38 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Boot the amd64 image (the runner's own architecture) before it gets + # any tag. A failure here leaves the existing floating tags untouched, + # and holds back the images built FROM this one (their jobs need this + # one to succeed). + - name: Checkout smoke test script + if: ${{ steps.digest_amd64.outcome == 'success' }} + uses: actions/checkout@v7 + with: + sparse-checkout: .github/scripts + + - name: Smoke test (amd64) + if: ${{ steps.digest_amd64.outcome == 'success' }} + run: | + .github/scripts/smoke-test.sh "${{ matrix.variant }}" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:$(find /tmp/digests/amd64 -type f -printf '%f')" \ + "${{ matrix.version }}" + - name: Create manifest list and push if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} working-directory: /tmp/digests run: | - # Exactly one amd64 and one arm64 digest. - test "$(ls | wc -l)" -eq 2 + # Exactly one amd64 and one arm64 digest (file name = digest). + test "$(find amd64 -type f | wc -l)" -eq 1 + test "$(find arm64 -type f | wc -l)" -eq 1 + amd64=$(find amd64 -type f -printf '%f') + arm64=$(find arm64 -type f -printf '%f') docker buildx imagetools create \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }} \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }}-latest \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }}-${{ github.sha }} \ - $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${amd64}" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${arm64}" # wordpress-dev is FROM -wordpress, so it builds only after # merge-frankenphp-dependent has published that tag. In the same matrix @@ -537,17 +597,18 @@ jobs: # Exact artifact names: a missing arch fails here rather than # publishing a single-arch tag. - name: Download digest (amd64) + id: digest_amd64 if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/amd64 name: digest-fpdep-${{ matrix.version }}-${{ matrix.variant }}-amd64 - name: Download digest (arm64) if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} uses: actions/download-artifact@v4 with: - path: /tmp/digests + path: /tmp/digests/arm64 name: digest-fpdep-${{ matrix.version }}-${{ matrix.variant }}-arm64 - name: Set up Docker Buildx @@ -562,17 +623,38 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # Boot the amd64 image (the runner's own architecture) before it gets + # any tag. A failure here leaves the existing floating tags untouched, + # and holds back the images built FROM this one (their jobs need this + # one to succeed). + - name: Checkout smoke test script + if: ${{ steps.digest_amd64.outcome == 'success' }} + uses: actions/checkout@v7 + with: + sparse-checkout: .github/scripts + + - name: Smoke test (amd64) + if: ${{ steps.digest_amd64.outcome == 'success' }} + run: | + .github/scripts/smoke-test.sh "${{ matrix.variant }}" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:$(find /tmp/digests/amd64 -type f -printf '%f')" \ + "${{ matrix.version }}" + - name: Create manifest list and push if: ${{ inputs.force_build_all || github.event_name == 'schedule' || inputs[matrix.force_input] || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile.{1}', matrix.version, matrix.variant)) || (contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/Dockerfile', matrix.version)) || contains(needs.detect-changes.outputs.changed_files, format('php/{0}/frankenphp/docker-configure', matrix.version))) }} working-directory: /tmp/digests run: | - # Exactly one amd64 and one arm64 digest. - test "$(ls | wc -l)" -eq 2 + # Exactly one amd64 and one arm64 digest (file name = digest). + test "$(find amd64 -type f | wc -l)" -eq 1 + test "$(find arm64 -type f | wc -l)" -eq 1 + amd64=$(find amd64 -type f -printf '%f') + arm64=$(find arm64 -type f -printf '%f') docker buildx imagetools create \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }} \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }}-latest \ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}-frankenphp-${{ matrix.variant }}-${{ github.sha }} \ - $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${amd64}" \ + "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:${arm64}" summary: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 0728ca1..db4a9f9 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Docker images for PHP, published to `ghcr.io/aliasproject/php`. The primary offe | 8.4 | ✅ | ✅ | ✅ | ✅ | | 8.5 | ✅ | ✅ | ✅ | ✅ | -Tags follow `-` (e.g. `8.4-frankenphp-wordpress`), each also published as `-latest` and as `-` for the commit it was built from. Every image is rebuilt weekly (Mondays 10:00 UTC) to pick up base-image and Alpine package updates, which also refreshes the `-` tag of the current commit; pin by digest (`@sha256:…`) for a byte-for-byte fixed image. The frankenphp images stay on their pinned FrankenPHP version, so a new FrankenPHP release (and the PHP version it ships) still needs `FRANKENPHP_VERSION` bumped in their Dockerfiles. +Tags follow `-` (e.g. `8.4-frankenphp-wordpress`), each also published as `-latest` and as `-` for the commit it was built from. Every image is rebuilt weekly (Mondays 10:00 UTC) to pick up base-image and Alpine package updates, which also refreshes the `-` tag of the current commit; pin by digest (`@sha256:…`) for a byte-for-byte fixed image. Every image is booted and checked (PHP version, extensions, non-root, healthy and serving PHP for the frankenphp images) before it gets any tag, so a build that doesn't start never replaces `-latest`; the check is `.github/scripts/smoke-test.sh`. The frankenphp images stay on their pinned FrankenPHP version, so a new FrankenPHP release (and the PHP version it ships) still needs `FRANKENPHP_VERSION` bumped in their Dockerfiles. ```sh docker pull ghcr.io/aliasproject/php:8.4-frankenphp From 0c7baecb29bbe1540750559e9ccc2b8ec8ce810d Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Wed, 21 Oct 2026 16:31:24 -0700 Subject: [PATCH 2/2] Say the smoke test boots amd64 only; report CLI failures; drop a stale comment Review of #15 found: the README said every image is booted, but arm64 images are not; a failing docker run in the CLI path exited under set -e without the SMOKE TEST FAILED line; and the wordpress-dev merge job's comment claimed it holds back images built FROM it, but nothing is built from wordpress-dev. --- .github/scripts/smoke-test.sh | 6 +++--- .github/workflows/build-and-push.yml | 4 +--- README.md | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/scripts/smoke-test.sh b/.github/scripts/smoke-test.sh index a93ae56..6654728 100755 --- a/.github/scripts/smoke-test.sh +++ b/.github/scripts/smoke-test.sh @@ -49,10 +49,10 @@ check_php() { } if [ "$variant" = cli ]; then - version=$(docker run --rm "$image" php -r 'echo PHP_VERSION;') - loaded=$(docker run --rm "$image" php -m | tr '\n' ' ') + version=$(docker run --rm "$image" php -r 'echo PHP_VERSION;') || fail "php did not run" + loaded=$(docker run --rm "$image" php -m | tr '\n' ' ') || fail "php -m did not run" check_php "$version" "$loaded" - uid=$(docker run --rm "$image" id -u) + uid=$(docker run --rm "$image" id -u) || fail "id did not run" [ "$uid" != 0 ] || fail "runs as root" echo "ok: $image (PHP $version, uid $uid)" exit 0 diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 433246e..31c7a3d 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -624,9 +624,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} # Boot the amd64 image (the runner's own architecture) before it gets - # any tag. A failure here leaves the existing floating tags untouched, - # and holds back the images built FROM this one (their jobs need this - # one to succeed). + # any tag. A failure here leaves the existing floating tags untouched. - name: Checkout smoke test script if: ${{ steps.digest_amd64.outcome == 'success' }} uses: actions/checkout@v7 diff --git a/README.md b/README.md index db4a9f9..c9476fc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Docker images for PHP, published to `ghcr.io/aliasproject/php`. The primary offe | 8.4 | ✅ | ✅ | ✅ | ✅ | | 8.5 | ✅ | ✅ | ✅ | ✅ | -Tags follow `-` (e.g. `8.4-frankenphp-wordpress`), each also published as `-latest` and as `-` for the commit it was built from. Every image is rebuilt weekly (Mondays 10:00 UTC) to pick up base-image and Alpine package updates, which also refreshes the `-` tag of the current commit; pin by digest (`@sha256:…`) for a byte-for-byte fixed image. Every image is booted and checked (PHP version, extensions, non-root, healthy and serving PHP for the frankenphp images) before it gets any tag, so a build that doesn't start never replaces `-latest`; the check is `.github/scripts/smoke-test.sh`. The frankenphp images stay on their pinned FrankenPHP version, so a new FrankenPHP release (and the PHP version it ships) still needs `FRANKENPHP_VERSION` bumped in their Dockerfiles. +Tags follow `-` (e.g. `8.4-frankenphp-wordpress`), each also published as `-latest` and as `-` for the commit it was built from. Every image is rebuilt weekly (Mondays 10:00 UTC) to pick up base-image and Alpine package updates, which also refreshes the `-` tag of the current commit; pin by digest (`@sha256:…`) for a byte-for-byte fixed image. The amd64 image of every variant is booted and checked (PHP version, extensions, non-root, healthy and serving PHP for the frankenphp images) before it gets any tag, so a build that doesn't start never replaces `-latest`; the check is `.github/scripts/smoke-test.sh`. The arm64 images are built and published but not booted. The frankenphp images stay on their pinned FrankenPHP version, so a new FrankenPHP release (and the PHP version it ships) still needs `FRANKENPHP_VERSION` bumped in their Dockerfiles. ```sh docker pull ghcr.io/aliasproject/php:8.4-frankenphp