From b494cfb34738e7184b35db1755e4ca5d9f195b9f Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Wed, 21 Oct 2026 10:44:31 +0000 Subject: [PATCH 1/5] Optimize BuildKit cache scopes and PHP compilation --- .github/workflows/build.yaml | 593 +++++++++++----------- ci/src/GithubJobBuilder.php | 18 +- ci/tests/cache-scopes.php | 49 ++ docker/php-official/8.2-alpine/Dockerfile | 4 +- docker/php-official/8.2/Dockerfile | 4 +- docker/php-official/8.3-alpine/Dockerfile | 4 +- docker/php-official/8.3/Dockerfile | 4 +- docker/php-official/8.4-alpine/Dockerfile | 4 +- docker/php-official/8.4/Dockerfile | 4 +- docker/php-official/8.5-alpine/Dockerfile | 4 +- docker/php-official/8.5/Dockerfile | 4 +- template/Dockerfile/images/php.jinja2 | 8 +- 12 files changed, 380 insertions(+), 320 deletions(-) create mode 100644 ci/tests/cache-scopes.php diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d8442ef9b..30f1f8020 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,6 +27,7 @@ jobs: run: |- docker run --rm -v $PWD:/app -w /app/ci webdevops/php:8.4-alpine composer install docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine ci/console github:generate-ci + docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine php ci/tests/cache-scopes.php git diff --exit-code --color=always apache_alpine: strategy: @@ -67,8 +68,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -79,8 +80,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -176,8 +177,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -188,8 +189,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -290,8 +291,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -302,8 +303,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - @@ -338,8 +339,8 @@ jobs: with: context: docker/base-app/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base-app_ubuntu-22-04' @@ -428,8 +429,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -440,8 +441,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' - @@ -476,8 +477,8 @@ jobs: with: context: docker/base/alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_alpine' @@ -564,8 +565,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -576,8 +577,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' - @@ -612,8 +613,8 @@ jobs: with: context: docker/base/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_ubuntu-22-04' @@ -702,8 +703,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -714,8 +715,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -750,8 +751,8 @@ jobs: with: context: docker/bootstrap/alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_alpine' @@ -838,8 +839,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -850,8 +851,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -886,8 +887,8 @@ jobs: with: context: docker/bootstrap/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_ubuntu-22-04' @@ -976,8 +977,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -988,8 +989,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base-app:ubuntu-22.04=oci-layout://.ci-oci-image/base-app_ubuntu-22-04:ci-parent-image' - @@ -1077,8 +1078,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1089,8 +1090,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -1186,8 +1187,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1198,8 +1199,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2=oci-layout://.ci-oci-image/php-apache_8-2:ci-parent-image' - @@ -1261,8 +1262,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1273,8 +1274,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2-alpine=oci-layout://.ci-oci-image/php-apache_8-2-alpine:ci-parent-image' - @@ -1404,8 +1405,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1416,8 +1417,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3=oci-layout://.ci-oci-image/php-apache_8-3:ci-parent-image' - @@ -1479,8 +1480,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1491,8 +1492,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3-alpine=oci-layout://.ci-oci-image/php-apache_8-3-alpine:ci-parent-image' - @@ -1622,8 +1623,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1634,8 +1635,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4=oci-layout://.ci-oci-image/php-apache_8-4:ci-parent-image' - @@ -1697,8 +1698,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1709,8 +1710,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4-alpine=oci-layout://.ci-oci-image/php-apache_8-4-alpine:ci-parent-image' - @@ -1840,8 +1841,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1852,8 +1853,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5=oci-layout://.ci-oci-image/php-apache_8-5:ci-parent-image' - @@ -1915,8 +1916,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1927,8 +1928,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5-alpine=oci-layout://.ci-oci-image/php-apache_8-5-alpine:ci-parent-image' - @@ -2058,8 +2059,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2070,8 +2071,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -2101,8 +2102,8 @@ jobs: with: context: docker/php-apache/8.2 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2' @@ -2155,8 +2156,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2167,8 +2168,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -2198,8 +2199,8 @@ jobs: with: context: docker/php-apache/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2-alpine' @@ -2320,8 +2321,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2332,8 +2333,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -2363,8 +2364,8 @@ jobs: with: context: docker/php-apache/8.3 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3' @@ -2417,8 +2418,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2429,8 +2430,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -2460,8 +2461,8 @@ jobs: with: context: docker/php-apache/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3-alpine' @@ -2582,8 +2583,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2594,8 +2595,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -2625,8 +2626,8 @@ jobs: with: context: docker/php-apache/8.4 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4' @@ -2679,8 +2680,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2691,8 +2692,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -2722,8 +2723,8 @@ jobs: with: context: docker/php-apache/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4-alpine' @@ -2844,8 +2845,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2856,8 +2857,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -2887,8 +2888,8 @@ jobs: with: context: docker/php-apache/8.5 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5' @@ -2941,8 +2942,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2953,8 +2954,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -2984,8 +2985,8 @@ jobs: with: context: docker/php-apache/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5-alpine' @@ -3106,8 +3107,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3118,8 +3119,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -3186,8 +3187,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3198,8 +3199,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -3334,8 +3335,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3346,8 +3347,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -3414,8 +3415,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3426,8 +3427,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -3562,8 +3563,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3574,8 +3575,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -3642,8 +3643,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3654,8 +3655,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -3790,8 +3791,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3802,8 +3803,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -3870,8 +3871,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3882,8 +3883,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -4018,8 +4019,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4030,8 +4031,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2=oci-layout://.ci-oci-image/php-nginx_8-2:ci-parent-image' - @@ -4093,8 +4094,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4105,8 +4106,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2-alpine=oci-layout://.ci-oci-image/php-nginx_8-2-alpine:ci-parent-image' - @@ -4236,8 +4237,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4248,8 +4249,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3=oci-layout://.ci-oci-image/php-nginx_8-3:ci-parent-image' - @@ -4311,8 +4312,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4323,8 +4324,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3-alpine=oci-layout://.ci-oci-image/php-nginx_8-3-alpine:ci-parent-image' - @@ -4454,8 +4455,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4466,8 +4467,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4=oci-layout://.ci-oci-image/php-nginx_8-4:ci-parent-image' - @@ -4529,8 +4530,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4541,8 +4542,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4-alpine=oci-layout://.ci-oci-image/php-nginx_8-4-alpine:ci-parent-image' - @@ -4672,8 +4673,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4684,8 +4685,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5=oci-layout://.ci-oci-image/php-nginx_8-5:ci-parent-image' - @@ -4747,8 +4748,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4759,8 +4760,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5-alpine=oci-layout://.ci-oci-image/php-nginx_8-5-alpine:ci-parent-image' - @@ -4890,8 +4891,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4902,8 +4903,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -4938,8 +4939,8 @@ jobs: with: context: docker/php-nginx/8.2 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2' @@ -4992,8 +4993,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5004,8 +5005,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -5040,8 +5041,8 @@ jobs: with: context: docker/php-nginx/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2-alpine' @@ -5162,8 +5163,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5174,8 +5175,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -5210,8 +5211,8 @@ jobs: with: context: docker/php-nginx/8.3 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3' @@ -5264,8 +5265,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5276,8 +5277,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -5312,8 +5313,8 @@ jobs: with: context: docker/php-nginx/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3-alpine' @@ -5434,8 +5435,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5446,8 +5447,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -5482,8 +5483,8 @@ jobs: with: context: docker/php-nginx/8.4 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4' @@ -5536,8 +5537,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5548,8 +5549,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -5584,8 +5585,8 @@ jobs: with: context: docker/php-nginx/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4-alpine' @@ -5706,8 +5707,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5718,8 +5719,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -5754,8 +5755,8 @@ jobs: with: context: docker/php-nginx/8.5 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5' @@ -5808,8 +5809,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5820,8 +5821,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -5856,8 +5857,8 @@ jobs: with: context: docker/php-nginx/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5-alpine' @@ -5978,8 +5979,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5990,8 +5991,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6026,8 +6027,8 @@ jobs: with: context: docker/php-official/8.2 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2' @@ -6080,8 +6081,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6092,8 +6093,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6128,8 +6129,8 @@ jobs: with: context: docker/php-official/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2-alpine' @@ -6254,8 +6255,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6266,8 +6267,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6302,8 +6303,8 @@ jobs: with: context: docker/php-official/8.3 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3' @@ -6356,8 +6357,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6368,8 +6369,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6404,8 +6405,8 @@ jobs: with: context: docker/php-official/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3-alpine' @@ -6530,8 +6531,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6542,8 +6543,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6578,8 +6579,8 @@ jobs: with: context: docker/php-official/8.4 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4' @@ -6632,8 +6633,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6644,8 +6645,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6680,8 +6681,8 @@ jobs: with: context: docker/php-official/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4-alpine' @@ -6806,8 +6807,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6818,8 +6819,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6854,8 +6855,8 @@ jobs: with: context: docker/php-official/8.5 platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5' @@ -6908,8 +6909,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6920,8 +6921,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6956,8 +6957,8 @@ jobs: with: context: docker/php-official/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5-alpine' @@ -7074,8 +7075,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/storage:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7154,8 +7155,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/toolbox:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7176,8 +7177,8 @@ jobs: with: context: docker/toolbox/latest platforms: '${{ matrix.platform }}' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/toolbox_latest' - @@ -7263,8 +7264,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -7275,8 +7276,8 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: type=gha - cache-to: 'type=gha,mode=max' + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:latest=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - diff --git a/ci/src/GithubJobBuilder.php b/ci/src/GithubJobBuilder.php index 773ba5b70..cb00ed552 100644 --- a/ci/src/GithubJobBuilder.php +++ b/ci/src/GithubJobBuilder.php @@ -117,8 +117,7 @@ public function getJobsDescription(array $node): array [ 'context' => dirname(str_replace(__DIR__ . '/../../', '', $node['file'])), 'platforms' => '${{ matrix.platform }}', - 'cache-from' => 'type=gha', - 'cache-to' => 'type=gha,mode=max', + ...$this->buildCacheWith($node), 'build-args' => implode("\n", [ 'TARGETARCH=${{ matrix.arch }}', ]), @@ -215,14 +214,24 @@ private function buildPushWith(array $node): array 'platforms' => '${{ matrix.platform }}', 'load' => true, 'tags' => 'ghcr.io/webdevops/' . $node['image'] . ':sha-${{ github.sha }}-${{ matrix.arch }}-' . $node['tag'], - 'cache-from' => 'type=gha', - 'cache-to' => 'type=gha,mode=max', + ...$this->buildCacheWith($node), 'build-args' => implode("\n", [ 'TARGETARCH=${{ matrix.arch }}', ]), ]; } + private function buildCacheWith(array $node): array + { + // Keep the full image/tag to avoid normalization collisions, and omit + // commit/branch identifiers so repeated builds can reuse the same cache. + $cache = 'type=gha,scope=' . $node['id'] . '-${{ matrix.arch }}'; + return [ + 'cache-from' => $cache, + 'cache-to' => $cache . ',mode=max', + ]; + } + /** * All internal webdevops/* images this node needs a same-run OCI * artifact override for: its real FROM parent (if any) plus any images @@ -372,6 +381,7 @@ public function getValidationConfig(): array 'run' => implode("\n", [ 'docker run --rm -v $PWD:/app -w /app/ci webdevops/php:8.4-alpine composer install', 'docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine ci/console github:generate-ci', + 'docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine php ci/tests/cache-scopes.php', 'git diff --exit-code --color=always', ]), ], diff --git a/ci/tests/cache-scopes.php b/ci/tests/cache-scopes.php new file mode 100644 index 000000000..d9b0d6cd6 --- /dev/null +++ b/ci/tests/cache-scopes.php @@ -0,0 +1,49 @@ + + str_starts_with($step['uses'] ?? '', 'docker/build-push-action@') + ); + if (!$builds) { + continue; + } + + $image = str_replace(' (${{ matrix.arch }})', '', $job['name']); + foreach ($job['strategy']['matrix']['include'] as $matrix) { + $scope = $image . '-' . $matrix['arch']; + if (isset($scopes[$scope])) { + throw new RuntimeException('Cache scope reused by another image/architecture: ' . $scope); + } + $scopes[$scope] = true; + + foreach ($builds as $step) { + // The exact image/tag + architecture contract also excludes commit, + // branch and run identifiers, keeping scopes stable across builds. + foreach (['cache-from' => '', 'cache-to' => ',mode=max'] as $key => $suffix) { + $actual = str_replace('${{ matrix.arch }}', $matrix['arch'], $step['with'][$key] ?? ''); + if ($actual !== 'type=gha,scope=' . $scope . $suffix) { + throw new RuntimeException($image . ': ' . $step['name'] . ' has incorrect ' . $key . ': ' . $actual); + } + $checks++; + } + $variants[$step['name']] = true; + } + } +} + +foreach (['Build (load locally)', 'Build (load locally, from parent artifact)', 'Export image (OCI layout)'] as $variant) { + if (!isset($variants[$variant])) { + throw new RuntimeException('Missing BuildKit variant coverage: ' . $variant); + } +} + +printf("Passed %d cache checks across %d unique image/architecture scopes.\n", $checks, count($scopes)); diff --git a/docker/php-official/8.2-alpine/Dockerfile b/docker/php-official/8.2-alpine/Dockerfile index 1ecb93e5f..6e63c33c6 100644 --- a/docker/php-official/8.2-alpine/Dockerfile +++ b/docker/php-official/8.2-alpine/Dockerfile @@ -144,7 +144,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -154,7 +154,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-openssl-dir \ && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ bz2 \ calendar \ diff --git a/docker/php-official/8.2/Dockerfile b/docker/php-official/8.2/Dockerfile index 09d317056..ee99c23bc 100644 --- a/docker/php-official/8.2/Dockerfile +++ b/docker/php-official/8.2/Dockerfile @@ -143,7 +143,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && rm -rf master.zip guetzli-master \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -153,7 +153,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-openssl-dir \ && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ amqp \ imagick \ diff --git a/docker/php-official/8.3-alpine/Dockerfile b/docker/php-official/8.3-alpine/Dockerfile index 9af74abe0..7671ad2bb 100644 --- a/docker/php-official/8.3-alpine/Dockerfile +++ b/docker/php-official/8.3-alpine/Dockerfile @@ -144,7 +144,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -154,7 +154,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-openssl-dir \ && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ bz2 \ calendar \ diff --git a/docker/php-official/8.3/Dockerfile b/docker/php-official/8.3/Dockerfile index cce96ef44..dce9702ed 100644 --- a/docker/php-official/8.3/Dockerfile +++ b/docker/php-official/8.3/Dockerfile @@ -143,7 +143,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && rm -rf master.zip guetzli-master \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -153,7 +153,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-openssl-dir \ && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ amqp \ imagick \ diff --git a/docker/php-official/8.4-alpine/Dockerfile b/docker/php-official/8.4-alpine/Dockerfile index 9bd9c430c..e7c866566 100644 --- a/docker/php-official/8.4-alpine/Dockerfile +++ b/docker/php-official/8.4-alpine/Dockerfile @@ -144,7 +144,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -153,7 +153,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && cd /usr/src/php/ext/amqp && git submodule update --init \ && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-ftp-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ bz2 \ calendar \ diff --git a/docker/php-official/8.4/Dockerfile b/docker/php-official/8.4/Dockerfile index e94c6c231..fa9d30d0e 100644 --- a/docker/php-official/8.4/Dockerfile +++ b/docker/php-official/8.4/Dockerfile @@ -142,7 +142,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && rm -rf master.zip guetzli-master \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -151,7 +151,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \ && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-ftp-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ amqp \ imagick \ diff --git a/docker/php-official/8.5-alpine/Dockerfile b/docker/php-official/8.5-alpine/Dockerfile index daff42a25..2eded84c6 100644 --- a/docker/php-official/8.5-alpine/Dockerfile +++ b/docker/php-official/8.5-alpine/Dockerfile @@ -144,7 +144,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -153,7 +153,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && cd /usr/src/php/ext/amqp && git submodule update --init \ && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-ftp-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ bz2 \ calendar \ diff --git a/docker/php-official/8.5/Dockerfile b/docker/php-official/8.5/Dockerfile index dd74475ca..e6f993e38 100644 --- a/docker/php-official/8.5/Dockerfile +++ b/docker/php-official/8.5/Dockerfile @@ -142,7 +142,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && rm -rf master.zip guetzli-master \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -151,7 +151,7 @@ RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin && git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \ && docker-php-ext-configure ldap \ && docker-php-ext-configure ftp --with-ftp-ssl \ - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ amqp \ imagick \ diff --git a/template/Dockerfile/images/php.jinja2 b/template/Dockerfile/images/php.jinja2 index 0e05c114c..48c00e83f 100644 --- a/template/Dockerfile/images/php.jinja2 +++ b/template/Dockerfile/images/php.jinja2 @@ -107,7 +107,7 @@ && rm -rf master.zip guetzli-master \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -123,7 +123,7 @@ {%- if version != '8.4' and version != '8.5' %} && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ {%- endif %} - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ amqp \ imagick \ @@ -261,7 +261,7 @@ && apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ # Install new version of ICU && curl -sS -o /tmp/icu.tar.gz -L https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz \ - && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make && make install && cd / && rm -rf /tmp/icu* \ + && tar -zxf /tmp/icu.tar.gz -C /tmp && cd /tmp/icu/source && ./configure --prefix=/usr/local && make -j"$(nproc)" && make install && cd / && rm -rf /tmp/icu* \ # Install extensions && PKG_CONFIG_PATH=/usr/local docker-php-ext-configure intl \ && docker-php-ext-configure gd --with-avif --with-jpeg --with-freetype --with-webp \ @@ -277,7 +277,7 @@ {%- if version != '8.4' and version != '8.5' %} && PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ {%- endif %} - && docker-php-ext-install \ + && docker-php-ext-install -j"$(nproc)" \ bcmath \ bz2 \ calendar \ From 667c27127f2c5898ab85de1846a10d04904e17e4 Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Wed, 21 Oct 2026 10:58:50 +0000 Subject: [PATCH 2/5] Remove cache scope regression test --- .github/workflows/build.yaml | 1 - ci/src/GithubJobBuilder.php | 1 - ci/tests/cache-scopes.php | 49 ------------------------------------ 3 files changed, 51 deletions(-) delete mode 100644 ci/tests/cache-scopes.php diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 30f1f8020..0f855e1d6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -27,7 +27,6 @@ jobs: run: |- docker run --rm -v $PWD:/app -w /app/ci webdevops/php:8.4-alpine composer install docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine ci/console github:generate-ci - docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine php ci/tests/cache-scopes.php git diff --exit-code --color=always apache_alpine: strategy: diff --git a/ci/src/GithubJobBuilder.php b/ci/src/GithubJobBuilder.php index cb00ed552..893b9a3c8 100644 --- a/ci/src/GithubJobBuilder.php +++ b/ci/src/GithubJobBuilder.php @@ -381,7 +381,6 @@ public function getValidationConfig(): array 'run' => implode("\n", [ 'docker run --rm -v $PWD:/app -w /app/ci webdevops/php:8.4-alpine composer install', 'docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine ci/console github:generate-ci', - 'docker run --rm -v $PWD:/app -w /app webdevops/php:8.4-alpine php ci/tests/cache-scopes.php', 'git diff --exit-code --color=always', ]), ], diff --git a/ci/tests/cache-scopes.php b/ci/tests/cache-scopes.php deleted file mode 100644 index d9b0d6cd6..000000000 --- a/ci/tests/cache-scopes.php +++ /dev/null @@ -1,49 +0,0 @@ - - str_starts_with($step['uses'] ?? '', 'docker/build-push-action@') - ); - if (!$builds) { - continue; - } - - $image = str_replace(' (${{ matrix.arch }})', '', $job['name']); - foreach ($job['strategy']['matrix']['include'] as $matrix) { - $scope = $image . '-' . $matrix['arch']; - if (isset($scopes[$scope])) { - throw new RuntimeException('Cache scope reused by another image/architecture: ' . $scope); - } - $scopes[$scope] = true; - - foreach ($builds as $step) { - // The exact image/tag + architecture contract also excludes commit, - // branch and run identifiers, keeping scopes stable across builds. - foreach (['cache-from' => '', 'cache-to' => ',mode=max'] as $key => $suffix) { - $actual = str_replace('${{ matrix.arch }}', $matrix['arch'], $step['with'][$key] ?? ''); - if ($actual !== 'type=gha,scope=' . $scope . $suffix) { - throw new RuntimeException($image . ': ' . $step['name'] . ' has incorrect ' . $key . ': ' . $actual); - } - $checks++; - } - $variants[$step['name']] = true; - } - } -} - -foreach (['Build (load locally)', 'Build (load locally, from parent artifact)', 'Export image (OCI layout)'] as $variant) { - if (!isset($variants[$variant])) { - throw new RuntimeException('Missing BuildKit variant coverage: ' . $variant); - } -} - -printf("Passed %d cache checks across %d unique image/architecture scopes.\n", $checks, count($scopes)); From 72726332a7e05f192ac9c49a2becabec51b90d8b Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Wed, 21 Oct 2026 11:56:39 +0000 Subject: [PATCH 3/5] Limit build cache reuse to two days and rebuild on schedule --- .github/workflows/build.yaml | 980 ++++++++++++++++++++++++----------- ci/src/GithubJobBuilder.php | 13 +- 2 files changed, 696 insertions(+), 297 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f855e1d6..66dde1ed0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,6 +51,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -67,8 +71,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -79,8 +84,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -160,6 +166,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -176,8 +186,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -188,8 +199,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -274,6 +286,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -290,8 +306,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -302,8 +319,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - @@ -338,8 +356,9 @@ jobs: with: context: docker/base-app/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base-app_ubuntu-22-04' @@ -412,6 +431,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/bootstrap:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -428,8 +451,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -440,8 +464,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' - @@ -476,8 +501,9 @@ jobs: with: context: docker/base/alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_alpine' @@ -548,6 +574,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/bootstrap:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -564,8 +594,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -576,8 +607,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' - @@ -612,8 +644,9 @@ jobs: with: context: docker/base/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_ubuntu-22-04' @@ -686,6 +719,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -702,8 +739,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -714,8 +752,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -750,8 +789,9 @@ jobs: with: context: docker/bootstrap/alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_alpine' @@ -822,6 +862,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -838,8 +882,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -850,8 +895,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -886,8 +932,9 @@ jobs: with: context: docker/bootstrap/ubuntu-22.04 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_ubuntu-22-04' @@ -960,6 +1007,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base-app:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -976,8 +1027,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -988,8 +1040,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base-app:ubuntu-22.04=oci-layout://.ci-oci-image/base-app_ubuntu-22-04:ci-parent-image' - @@ -1061,6 +1114,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1077,8 +1134,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1089,8 +1147,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -1170,6 +1229,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1186,8 +1249,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1198,8 +1262,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2=oci-layout://.ci-oci-image/php-apache_8-2:ci-parent-image' - @@ -1245,6 +1310,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1261,8 +1330,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1273,8 +1343,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2-alpine=oci-layout://.ci-oci-image/php-apache_8-2-alpine:ci-parent-image' - @@ -1388,6 +1459,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1404,8 +1479,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1416,8 +1492,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3=oci-layout://.ci-oci-image/php-apache_8-3:ci-parent-image' - @@ -1463,6 +1540,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1479,8 +1560,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1491,8 +1573,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3-alpine=oci-layout://.ci-oci-image/php-apache_8-3-alpine:ci-parent-image' - @@ -1606,6 +1689,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1622,8 +1709,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1634,8 +1722,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4=oci-layout://.ci-oci-image/php-apache_8-4:ci-parent-image' - @@ -1681,6 +1770,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1697,8 +1790,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1709,8 +1803,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4-alpine=oci-layout://.ci-oci-image/php-apache_8-4-alpine:ci-parent-image' - @@ -1824,6 +1919,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1840,8 +1939,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1852,8 +1952,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5=oci-layout://.ci-oci-image/php-apache_8-5:ci-parent-image' - @@ -1899,6 +2000,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1915,8 +2020,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1927,8 +2033,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5-alpine=oci-layout://.ci-oci-image/php-apache_8-5-alpine:ci-parent-image' - @@ -2042,6 +2149,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2058,8 +2169,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2070,8 +2182,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -2101,8 +2214,9 @@ jobs: with: context: docker/php-apache/8.2 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2' @@ -2139,6 +2253,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2155,8 +2273,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2167,8 +2286,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -2198,8 +2318,9 @@ jobs: with: context: docker/php-apache/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2-alpine' @@ -2304,6 +2425,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2320,8 +2445,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2332,8 +2458,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -2363,8 +2490,9 @@ jobs: with: context: docker/php-apache/8.3 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3' @@ -2401,6 +2529,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2417,8 +2549,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2429,8 +2562,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -2460,8 +2594,9 @@ jobs: with: context: docker/php-apache/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3-alpine' @@ -2566,6 +2701,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2582,8 +2721,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2594,8 +2734,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -2625,8 +2766,9 @@ jobs: with: context: docker/php-apache/8.4 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4' @@ -2663,6 +2805,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2679,8 +2825,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2691,8 +2838,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -2722,8 +2870,9 @@ jobs: with: context: docker/php-apache/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4-alpine' @@ -2828,6 +2977,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2844,8 +2997,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2856,8 +3010,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -2887,8 +3042,9 @@ jobs: with: context: docker/php-apache/8.5 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5' @@ -2925,6 +3081,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2941,8 +3101,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2953,8 +3114,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -2984,8 +3146,9 @@ jobs: with: context: docker/php-apache/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5-alpine' @@ -3090,6 +3253,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3106,8 +3273,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3118,8 +3286,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -3170,6 +3339,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3186,8 +3359,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3198,8 +3372,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -3318,6 +3493,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3334,8 +3513,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3346,8 +3526,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -3398,6 +3579,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3414,8 +3599,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3426,8 +3612,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -3546,6 +3733,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3562,8 +3753,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3574,8 +3766,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -3626,6 +3819,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3642,8 +3839,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3654,8 +3852,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -3774,6 +3973,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3790,8 +3993,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3802,8 +4006,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -3854,6 +4059,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3870,8 +4079,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3882,8 +4092,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -4002,6 +4213,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4018,8 +4233,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4030,8 +4246,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2=oci-layout://.ci-oci-image/php-nginx_8-2:ci-parent-image' - @@ -4077,6 +4294,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4093,8 +4314,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4105,8 +4327,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2-alpine=oci-layout://.ci-oci-image/php-nginx_8-2-alpine:ci-parent-image' - @@ -4220,6 +4443,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4236,8 +4463,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4248,8 +4476,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3=oci-layout://.ci-oci-image/php-nginx_8-3:ci-parent-image' - @@ -4295,6 +4524,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4311,8 +4544,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4323,8 +4557,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3-alpine=oci-layout://.ci-oci-image/php-nginx_8-3-alpine:ci-parent-image' - @@ -4438,6 +4673,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4454,8 +4693,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4466,8 +4706,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4=oci-layout://.ci-oci-image/php-nginx_8-4:ci-parent-image' - @@ -4513,6 +4754,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4529,8 +4774,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4541,8 +4787,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4-alpine=oci-layout://.ci-oci-image/php-nginx_8-4-alpine:ci-parent-image' - @@ -4656,6 +4903,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4672,8 +4923,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4684,8 +4936,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5=oci-layout://.ci-oci-image/php-nginx_8-5:ci-parent-image' - @@ -4731,6 +4984,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4747,8 +5004,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4759,8 +5017,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5-alpine=oci-layout://.ci-oci-image/php-nginx_8-5-alpine:ci-parent-image' - @@ -4874,6 +5133,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4890,8 +5153,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4902,8 +5166,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -4938,8 +5203,9 @@ jobs: with: context: docker/php-nginx/8.2 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2' @@ -4976,6 +5242,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4992,8 +5262,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5004,8 +5275,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -5040,8 +5312,9 @@ jobs: with: context: docker/php-nginx/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2-alpine' @@ -5146,6 +5419,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5162,8 +5439,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5174,8 +5452,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -5210,8 +5489,9 @@ jobs: with: context: docker/php-nginx/8.3 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3' @@ -5248,6 +5528,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5264,8 +5548,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5276,8 +5561,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -5312,8 +5598,9 @@ jobs: with: context: docker/php-nginx/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3-alpine' @@ -5418,6 +5705,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5434,8 +5725,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5446,8 +5738,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -5482,8 +5775,9 @@ jobs: with: context: docker/php-nginx/8.4 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4' @@ -5520,6 +5814,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5536,8 +5834,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5548,8 +5847,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -5584,8 +5884,9 @@ jobs: with: context: docker/php-nginx/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4-alpine' @@ -5690,6 +5991,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5706,8 +6011,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5718,8 +6024,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -5754,8 +6061,9 @@ jobs: with: context: docker/php-nginx/8.5 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5' @@ -5792,6 +6100,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5808,8 +6120,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5820,8 +6133,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -5856,8 +6170,9 @@ jobs: with: context: docker/php-nginx/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5-alpine' @@ -5962,6 +6277,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5978,8 +6297,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5990,8 +6310,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6026,8 +6347,9 @@ jobs: with: context: docker/php-official/8.2 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2' @@ -6064,6 +6386,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6080,8 +6406,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6092,8 +6419,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6128,8 +6456,9 @@ jobs: with: context: docker/php-official/8.2-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2-alpine' @@ -6238,6 +6567,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6254,8 +6587,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6266,8 +6600,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6302,8 +6637,9 @@ jobs: with: context: docker/php-official/8.3 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3' @@ -6340,6 +6676,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6356,8 +6696,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6368,8 +6709,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6404,8 +6746,9 @@ jobs: with: context: docker/php-official/8.3-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3-alpine' @@ -6514,6 +6857,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6530,8 +6877,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6542,8 +6890,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6578,8 +6927,9 @@ jobs: with: context: docker/php-official/8.4 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4' @@ -6616,6 +6966,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6632,8 +6986,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6644,8 +6999,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6680,8 +7036,9 @@ jobs: with: context: docker/php-official/8.4-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4-alpine' @@ -6790,6 +7147,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6806,8 +7167,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6818,8 +7180,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6854,8 +7217,9 @@ jobs: with: context: docker/php-official/8.5 platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5' @@ -6892,6 +7256,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6908,8 +7276,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6920,8 +7289,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6956,8 +7326,9 @@ jobs: with: context: docker/php-official/8.5-alpine platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5-alpine' @@ -7066,6 +7437,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Build (load locally)' uses: docker/build-push-action@v6 @@ -7074,8 +7449,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/storage:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7146,6 +7522,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Build (load locally)' uses: docker/build-push-action@v6 @@ -7154,8 +7534,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/toolbox:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7176,8 +7557,9 @@ jobs: with: context: docker/toolbox/latest platforms: '${{ matrix.platform }}' - cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/toolbox_latest' - @@ -7247,6 +7629,10 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 + - + name: 'Set BuildKit cache window' + id: build-cache + run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -7263,8 +7649,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -7275,8 +7662,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' - cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' + no-cache: "${{ github.event_name == 'schedule' }}" + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:latest=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - diff --git a/ci/src/GithubJobBuilder.php b/ci/src/GithubJobBuilder.php index 893b9a3c8..0b7de8c8a 100644 --- a/ci/src/GithubJobBuilder.php +++ b/ci/src/GithubJobBuilder.php @@ -17,6 +17,8 @@ class GithubJobBuilder */ private const PARENT_OCI_TAG = 'ci-parent-image'; + private const CACHE_MAX_AGE_SECONDS = 2 * 24 * 60 * 60; + /** * @return array> */ @@ -70,6 +72,11 @@ public function getJobsDescription(array $node): array [ ['uses' => 'actions/checkout@v6'], ['uses' => 'docker/setup-buildx-action@v3'], + [ + 'name' => 'Set BuildKit cache window', + 'id' => 'build-cache', + 'run' => 'echo "window=$(($(date -u +%s) / ' . self::CACHE_MAX_AGE_SECONDS . '))" >> "$GITHUB_OUTPUT"', + ], ...$this->downloadParentImageSteps($imageDependencies), array_filter([ 'name' => 'Build (load locally)', @@ -225,8 +232,12 @@ private function buildCacheWith(array $node): array { // Keep the full image/tag to avoid normalization collisions, and omit // commit/branch identifiers so repeated builds can reuse the same cache. - $cache = 'type=gha,scope=' . $node['id'] . '-${{ matrix.arch }}'; + // GHA has no TTL option: rotate scopes every 48 hours without falling + // back to older windows, so old layers cannot be kept alive by exports. + $cache = 'type=gha,scope=' . $node['id'] . '-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}'; return [ + // Scheduled builds recompile and refresh the current cache window. + 'no-cache' => '${{ github.event_name == \'schedule\' }}', 'cache-from' => $cache, 'cache-to' => $cache . ',mode=max', ]; From 29c226052feb4fe34880526f729a2cecd51e115e Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Wed, 21 Oct 2026 12:33:17 +0000 Subject: [PATCH 4/5] Use stable build caches and rebuild PR reruns without cache --- .github/workflows/build.yaml | 1128 +++++++++++++--------------------- ci/src/GithubJobBuilder.php | 22 +- 2 files changed, 452 insertions(+), 698 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 66dde1ed0..77d5620fb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,10 +51,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -71,9 +67,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -84,9 +80,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -166,10 +162,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -186,9 +178,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -199,9 +191,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -286,10 +278,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -306,9 +294,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -319,9 +307,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - @@ -356,9 +344,8 @@ jobs: with: context: docker/base-app/ubuntu-22.04 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:ubuntu-22.04=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base-app_ubuntu-22-04' @@ -370,6 +357,7 @@ jobs: name: 'docker-parent-base-app_ubuntu-22-04-${{ matrix.arch }}' path: .ci-oci-image/base-app_ubuntu-22-04 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error base-app_ubuntu-22-04_publish: @@ -431,10 +419,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/bootstrap:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -451,9 +435,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -464,9 +448,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' - @@ -501,9 +485,8 @@ jobs: with: context: docker/base/alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:alpine=oci-layout://.ci-oci-image/bootstrap_alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_alpine' @@ -515,6 +498,7 @@ jobs: name: 'docker-parent-base_alpine-${{ matrix.arch }}' path: .ci-oci-image/base_alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error base_alpine_publish: @@ -574,10 +558,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/bootstrap:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -594,9 +574,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -607,9 +587,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' - @@ -644,9 +624,8 @@ jobs: with: context: docker/base/ubuntu-22.04 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/bootstrap:ubuntu-22.04=oci-layout://.ci-oci-image/bootstrap_ubuntu-22-04:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/base_ubuntu-22-04' @@ -658,6 +637,7 @@ jobs: name: 'docker-parent-base_ubuntu-22-04-${{ matrix.arch }}' path: .ci-oci-image/base_ubuntu-22-04 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error base_ubuntu-22-04_publish: @@ -719,10 +699,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -739,9 +715,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -752,9 +728,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -789,9 +765,8 @@ jobs: with: context: docker/bootstrap/alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_alpine' @@ -803,6 +778,7 @@ jobs: name: 'docker-parent-bootstrap_alpine-${{ matrix.arch }}' path: .ci-oci-image/bootstrap_alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error bootstrap_alpine_publish: @@ -862,10 +838,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -882,9 +854,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -895,9 +867,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -932,9 +904,8 @@ jobs: with: context: docker/bootstrap/ubuntu-22.04 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/bootstrap_ubuntu-22-04' @@ -946,6 +917,7 @@ jobs: name: 'docker-parent-bootstrap_ubuntu-22-04-${{ matrix.arch }}' path: .ci-oci-image/bootstrap_ubuntu-22-04 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error bootstrap_ubuntu-22-04_publish: @@ -1007,10 +979,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base-app:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1027,9 +995,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1040,9 +1008,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base-app:ubuntu-22.04=oci-layout://.ci-oci-image/base-app_ubuntu-22-04:ci-parent-image' - @@ -1114,10 +1082,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1134,9 +1098,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1147,9 +1111,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:alpine=oci-layout://.ci-oci-image/base_alpine:ci-parent-image' - @@ -1229,10 +1193,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1249,9 +1209,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1262,9 +1222,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2=oci-layout://.ci-oci-image/php-apache_8-2:ci-parent-image' - @@ -1310,10 +1270,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1330,9 +1286,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1343,9 +1299,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.2-alpine=oci-layout://.ci-oci-image/php-apache_8-2-alpine:ci-parent-image' - @@ -1459,10 +1415,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1479,9 +1431,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1492,9 +1444,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3=oci-layout://.ci-oci-image/php-apache_8-3:ci-parent-image' - @@ -1540,10 +1492,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1560,9 +1508,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1573,9 +1521,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.3-alpine=oci-layout://.ci-oci-image/php-apache_8-3-alpine:ci-parent-image' - @@ -1689,10 +1637,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1709,9 +1653,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1722,9 +1666,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4=oci-layout://.ci-oci-image/php-apache_8-4:ci-parent-image' - @@ -1770,10 +1714,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1790,9 +1730,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1803,9 +1743,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.4-alpine=oci-layout://.ci-oci-image/php-apache_8-4-alpine:ci-parent-image' - @@ -1919,10 +1859,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -1939,9 +1875,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -1952,9 +1888,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5=oci-layout://.ci-oci-image/php-apache_8-5:ci-parent-image' - @@ -2000,10 +1936,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-apache:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2020,9 +1952,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2033,9 +1965,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-apache:8.5-alpine=oci-layout://.ci-oci-image/php-apache_8-5-alpine:ci-parent-image' - @@ -2149,10 +2081,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2169,9 +2097,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2182,9 +2110,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -2214,9 +2142,8 @@ jobs: with: context: docker/php-apache/8.2 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2' @@ -2228,6 +2155,7 @@ jobs: name: 'docker-parent-php-apache_8-2-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-2 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-2-alpine: @@ -2253,10 +2181,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2273,9 +2197,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2286,9 +2210,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -2318,9 +2242,8 @@ jobs: with: context: docker/php-apache/8.2-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-2-alpine' @@ -2332,6 +2255,7 @@ jobs: name: 'docker-parent-php-apache_8-2-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-2-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-2-alpine_publish: @@ -2425,10 +2349,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2445,9 +2365,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2458,9 +2378,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -2490,9 +2410,8 @@ jobs: with: context: docker/php-apache/8.3 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3' @@ -2504,6 +2423,7 @@ jobs: name: 'docker-parent-php-apache_8-3-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-3 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-3-alpine: @@ -2529,10 +2449,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2549,9 +2465,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2562,9 +2478,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -2594,9 +2510,8 @@ jobs: with: context: docker/php-apache/8.3-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-3-alpine' @@ -2608,6 +2523,7 @@ jobs: name: 'docker-parent-php-apache_8-3-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-3-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-3-alpine_publish: @@ -2701,10 +2617,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2721,9 +2633,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2734,9 +2646,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -2766,9 +2678,8 @@ jobs: with: context: docker/php-apache/8.4 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4' @@ -2780,6 +2691,7 @@ jobs: name: 'docker-parent-php-apache_8-4-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-4 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-4-alpine: @@ -2805,10 +2717,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2825,9 +2733,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -2838,9 +2746,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -2870,9 +2778,8 @@ jobs: with: context: docker/php-apache/8.4-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-4-alpine' @@ -2884,6 +2791,7 @@ jobs: name: 'docker-parent-php-apache_8-4-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-4-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-4-alpine_publish: @@ -2977,10 +2885,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -2997,9 +2901,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3010,9 +2914,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -3042,9 +2946,8 @@ jobs: with: context: docker/php-apache/8.5 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5' @@ -3056,6 +2959,7 @@ jobs: name: 'docker-parent-php-apache_8-5-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-5 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-5-alpine: @@ -3081,10 +2985,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3101,9 +3001,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3114,9 +3014,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -3146,9 +3046,8 @@ jobs: with: context: docker/php-apache/8.5-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-apache_8-5-alpine' @@ -3160,6 +3059,7 @@ jobs: name: 'docker-parent-php-apache_8-5-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-apache_8-5-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-apache_8-5-alpine_publish: @@ -3253,10 +3153,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3273,9 +3169,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3286,9 +3182,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -3339,10 +3235,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3359,9 +3251,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3372,9 +3264,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -3493,10 +3385,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3513,9 +3401,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3526,9 +3414,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -3579,10 +3467,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3599,9 +3483,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3612,9 +3496,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -3733,10 +3617,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3753,9 +3633,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3766,9 +3646,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -3819,10 +3699,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3839,9 +3715,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -3852,9 +3728,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -3973,10 +3849,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -3993,9 +3865,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4006,9 +3878,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -4059,10 +3931,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4079,9 +3947,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4092,9 +3960,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -4213,10 +4081,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4233,9 +4097,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4246,9 +4110,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2=oci-layout://.ci-oci-image/php-nginx_8-2:ci-parent-image' - @@ -4294,10 +4158,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4314,9 +4174,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4327,9 +4187,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.2-alpine=oci-layout://.ci-oci-image/php-nginx_8-2-alpine:ci-parent-image' - @@ -4443,10 +4303,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4463,9 +4319,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4476,9 +4332,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3=oci-layout://.ci-oci-image/php-nginx_8-3:ci-parent-image' - @@ -4524,10 +4380,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4544,9 +4396,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4557,9 +4409,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.3-alpine=oci-layout://.ci-oci-image/php-nginx_8-3-alpine:ci-parent-image' - @@ -4673,10 +4525,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4693,9 +4541,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4706,9 +4554,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4=oci-layout://.ci-oci-image/php-nginx_8-4:ci-parent-image' - @@ -4754,10 +4602,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4774,9 +4618,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4787,9 +4631,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.4-alpine=oci-layout://.ci-oci-image/php-nginx_8-4-alpine:ci-parent-image' - @@ -4903,10 +4747,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -4923,9 +4763,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -4936,9 +4776,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5=oci-layout://.ci-oci-image/php-nginx_8-5:ci-parent-image' - @@ -4984,10 +4824,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php-nginx:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5004,9 +4840,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5017,9 +4853,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php-nginx:8.5-alpine=oci-layout://.ci-oci-image/php-nginx_8-5-alpine:ci-parent-image' - @@ -5133,10 +4969,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5153,9 +4985,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5166,9 +4998,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' - @@ -5203,9 +5035,8 @@ jobs: with: context: docker/php-nginx/8.2 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2=oci-layout://.ci-oci-image/php_8-2:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2' @@ -5217,6 +5048,7 @@ jobs: name: 'docker-parent-php-nginx_8-2-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-2 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-2-alpine: @@ -5242,10 +5074,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.2-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5262,9 +5090,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5275,9 +5103,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' - @@ -5312,9 +5140,8 @@ jobs: with: context: docker/php-nginx/8.2-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.2-alpine=oci-layout://.ci-oci-image/php_8-2-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-2-alpine' @@ -5326,6 +5153,7 @@ jobs: name: 'docker-parent-php-nginx_8-2-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-2-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-2-alpine_publish: @@ -5419,10 +5247,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5439,9 +5263,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5452,9 +5276,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' - @@ -5489,9 +5313,8 @@ jobs: with: context: docker/php-nginx/8.3 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3=oci-layout://.ci-oci-image/php_8-3:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3' @@ -5503,6 +5326,7 @@ jobs: name: 'docker-parent-php-nginx_8-3-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-3 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-3-alpine: @@ -5528,10 +5352,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.3-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5548,9 +5368,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5561,9 +5381,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' - @@ -5598,9 +5418,8 @@ jobs: with: context: docker/php-nginx/8.3-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.3-alpine=oci-layout://.ci-oci-image/php_8-3-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-3-alpine' @@ -5612,6 +5431,7 @@ jobs: name: 'docker-parent-php-nginx_8-3-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-3-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-3-alpine_publish: @@ -5705,10 +5525,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5725,9 +5541,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5738,9 +5554,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' - @@ -5775,9 +5591,8 @@ jobs: with: context: docker/php-nginx/8.4 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4=oci-layout://.ci-oci-image/php_8-4:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4' @@ -5789,6 +5604,7 @@ jobs: name: 'docker-parent-php-nginx_8-4-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-4 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-4-alpine: @@ -5814,10 +5630,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.4-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -5834,9 +5646,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -5847,9 +5659,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' - @@ -5884,9 +5696,8 @@ jobs: with: context: docker/php-nginx/8.4-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.4-alpine=oci-layout://.ci-oci-image/php_8-4-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-4-alpine' @@ -5898,6 +5709,7 @@ jobs: name: 'docker-parent-php-nginx_8-4-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-4-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-4-alpine_publish: @@ -5991,10 +5803,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6011,9 +5819,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6024,9 +5832,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' - @@ -6061,9 +5869,8 @@ jobs: with: context: docker/php-nginx/8.5 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5=oci-layout://.ci-oci-image/php_8-5:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5' @@ -6075,6 +5882,7 @@ jobs: name: 'docker-parent-php-nginx_8-5-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-5 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-5-alpine: @@ -6100,10 +5908,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/php:8.5-alpine' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6120,9 +5924,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6133,9 +5937,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' - @@ -6170,9 +5974,8 @@ jobs: with: context: docker/php-nginx/8.5-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/php:8.5-alpine=oci-layout://.ci-oci-image/php_8-5-alpine:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php-nginx_8-5-alpine' @@ -6184,6 +5987,7 @@ jobs: name: 'docker-parent-php-nginx_8-5-alpine-${{ matrix.arch }}' path: .ci-oci-image/php-nginx_8-5-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php-nginx_8-5-alpine_publish: @@ -6277,10 +6081,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6297,9 +6097,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6310,9 +6110,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6347,9 +6147,8 @@ jobs: with: context: docker/php-official/8.2 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2' @@ -6361,6 +6160,7 @@ jobs: name: 'docker-parent-php_8-2-${{ matrix.arch }}' path: .ci-oci-image/php_8-2 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-2-alpine: @@ -6386,10 +6186,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6406,9 +6202,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6419,9 +6215,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6456,9 +6252,8 @@ jobs: with: context: docker/php-official/8.2-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-2-alpine' @@ -6470,6 +6265,7 @@ jobs: name: 'docker-parent-php_8-2-alpine-${{ matrix.arch }}' path: .ci-oci-image/php_8-2-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-2-alpine_publish: @@ -6567,10 +6363,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6587,9 +6379,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6600,9 +6392,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6637,9 +6429,8 @@ jobs: with: context: docker/php-official/8.3 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3' @@ -6651,6 +6442,7 @@ jobs: name: 'docker-parent-php_8-3-${{ matrix.arch }}' path: .ci-oci-image/php_8-3 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-3-alpine: @@ -6676,10 +6468,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6696,9 +6484,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6709,9 +6497,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6746,9 +6534,8 @@ jobs: with: context: docker/php-official/8.3-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-3-alpine' @@ -6760,6 +6547,7 @@ jobs: name: 'docker-parent-php_8-3-alpine-${{ matrix.arch }}' path: .ci-oci-image/php_8-3-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-3-alpine_publish: @@ -6857,10 +6645,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6877,9 +6661,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6890,9 +6674,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -6927,9 +6711,8 @@ jobs: with: context: docker/php-official/8.4 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4' @@ -6941,6 +6724,7 @@ jobs: name: 'docker-parent-php_8-4-${{ matrix.arch }}' path: .ci-oci-image/php_8-4 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-4-alpine: @@ -6966,10 +6750,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -6986,9 +6766,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -6999,9 +6779,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -7036,9 +6816,8 @@ jobs: with: context: docker/php-official/8.4-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-4-alpine' @@ -7050,6 +6829,7 @@ jobs: name: 'docker-parent-php_8-4-alpine-${{ matrix.arch }}' path: .ci-oci-image/php_8-4-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-4-alpine_publish: @@ -7147,10 +6927,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -7167,9 +6943,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -7180,9 +6956,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -7217,9 +6993,8 @@ jobs: with: context: docker/php-official/8.5 platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5' @@ -7231,6 +7006,7 @@ jobs: name: 'docker-parent-php_8-5-${{ matrix.arch }}' path: .ci-oci-image/php_8-5 retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-5-alpine: @@ -7256,10 +7032,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/toolbox:latest' if: "${{ github.ref != 'refs/heads/master' }}" @@ -7276,9 +7048,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -7289,9 +7061,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' - @@ -7326,9 +7098,8 @@ jobs: with: context: docker/php-official/8.5-alpine platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/toolbox=oci-layout://.ci-oci-image/toolbox_latest:ci-parent-image' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/php_8-5-alpine' @@ -7340,6 +7111,7 @@ jobs: name: 'docker-parent-php_8-5-alpine-${{ matrix.arch }}' path: .ci-oci-image/php_8-5-alpine retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error php_8-5-alpine_publish: @@ -7437,10 +7209,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Build (load locally)' uses: docker/build-push-action@v6 @@ -7449,9 +7217,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/storage:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7522,10 +7290,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Build (load locally)' uses: docker/build-push-action@v6 @@ -7534,9 +7298,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/toolbox:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - if: "${{github.ref == 'refs/heads/master'}}" @@ -7557,9 +7321,8 @@ jobs: with: context: docker/toolbox/latest platforms: '${{ matrix.platform }}' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' outputs: 'type=oci,tar=false,name=ci-parent-image,dest=.ci-oci-image/toolbox_latest' - @@ -7570,6 +7333,7 @@ jobs: name: 'docker-parent-toolbox_latest-${{ matrix.arch }}' path: .ci-oci-image/toolbox_latest retention-days: 1 + overwrite: true compression-level: 0 if-no-files-found: error toolbox_latest_publish: @@ -7629,10 +7393,6 @@ jobs: uses: actions/checkout@v6 - uses: docker/setup-buildx-action@v3 - - - name: 'Set BuildKit cache window' - id: build-cache - run: 'echo "window=$(($(date -u +%s) / 172800))" >> "$GITHUB_OUTPUT"' - name: 'Download parent image (OCI layout): webdevops/base:ubuntu-22.04' if: "${{ github.ref != 'refs/heads/master' }}" @@ -7649,9 +7409,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' - name: 'Build (load locally, from parent artifact)' @@ -7662,9 +7422,9 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' }}" - cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}' - cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }},mode=max' + no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' + cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' build-contexts: 'webdevops/base:latest=oci-layout://.ci-oci-image/base_ubuntu-22-04:ci-parent-image' - diff --git a/ci/src/GithubJobBuilder.php b/ci/src/GithubJobBuilder.php index 0b7de8c8a..3deb72826 100644 --- a/ci/src/GithubJobBuilder.php +++ b/ci/src/GithubJobBuilder.php @@ -17,8 +17,6 @@ class GithubJobBuilder */ private const PARENT_OCI_TAG = 'ci-parent-image'; - private const CACHE_MAX_AGE_SECONDS = 2 * 24 * 60 * 60; - /** * @return array> */ @@ -72,11 +70,6 @@ public function getJobsDescription(array $node): array [ ['uses' => 'actions/checkout@v6'], ['uses' => 'docker/setup-buildx-action@v3'], - [ - 'name' => 'Set BuildKit cache window', - 'id' => 'build-cache', - 'run' => 'echo "window=$(($(date -u +%s) / ' . self::CACHE_MAX_AGE_SECONDS . '))" >> "$GITHUB_OUTPUT"', - ], ...$this->downloadParentImageSteps($imageDependencies), array_filter([ 'name' => 'Build (load locally)', @@ -120,6 +113,7 @@ public function getJobsDescription(array $node): array 'name' => 'Export image (OCI layout)', 'if' => '${{ github.ref != \'refs/heads/master\' }}', 'uses' => 'docker/build-push-action@v6', + // Reuse the tested local build, including on no-cache reruns. 'with' => array_merge( [ 'context' => dirname(str_replace(__DIR__ . '/../../', '', $node['file'])), @@ -146,6 +140,8 @@ public function getJobsDescription(array $node): array 'name' => $this->getCiImageArtifactName($node['id']), 'path' => $this->getCiImagePath($node['id']), 'retention-days' => 1, + // A rerun must replace the previous attempt's parent image. + 'overwrite' => true, 'compression-level' => 0, 'if-no-files-found' => 'error', ], @@ -221,6 +217,8 @@ private function buildPushWith(array $node): array 'platforms' => '${{ matrix.platform }}', 'load' => true, 'tags' => 'ghcr.io/webdevops/' . $node['image'] . ':sha-${{ github.sha }}-${{ matrix.arch }}-' . $node['tag'], + // Re-run all jobs on a PR to test a fresh build of the full image chain. + 'no-cache' => '${{ github.event_name == \'schedule\' || (github.event_name == \'pull_request\' && github.run_attempt > 1) }}', ...$this->buildCacheWith($node), 'build-args' => implode("\n", [ 'TARGETARCH=${{ matrix.arch }}', @@ -230,14 +228,10 @@ private function buildPushWith(array $node): array private function buildCacheWith(array $node): array { - // Keep the full image/tag to avoid normalization collisions, and omit - // commit/branch identifiers so repeated builds can reuse the same cache. - // GHA has no TTL option: rotate scopes every 48 hours without falling - // back to older windows, so old layers cannot be kept alive by exports. - $cache = 'type=gha,scope=' . $node['id'] . '-${{ matrix.arch }}-${{ steps.build-cache.outputs.window }}'; + // Full image/tag and architecture keep scopes unique and reusable + // across commits, branches and reruns. + $cache = 'type=gha,scope=' . $node['id'] . '-${{ matrix.arch }}'; return [ - // Scheduled builds recompile and refresh the current cache window. - 'no-cache' => '${{ github.event_name == \'schedule\' }}', 'cache-from' => $cache, 'cache-to' => $cache . ',mode=max', ]; From f5d71063d7921f139857d033e6a2208cef2f46ef Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Wed, 21 Oct 2026 14:16:29 +0000 Subject: [PATCH 5/5] Disable build cache for all workflow reruns --- .github/workflows/build.yaml | 236 +++++++++++++++++------------------ ci/src/GithubJobBuilder.php | 4 +- 2 files changed, 120 insertions(+), 120 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 77d5620fb..31844a704 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -67,7 +67,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -80,7 +80,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/apache:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/apache:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -178,7 +178,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -191,7 +191,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base-app:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -294,7 +294,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -307,7 +307,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base-app:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base-app:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -435,7 +435,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -448,7 +448,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -574,7 +574,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -587,7 +587,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/base:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/base:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -715,7 +715,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -728,7 +728,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/bootstrap:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -854,7 +854,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -867,7 +867,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/bootstrap:sha-${{ github.sha }}-${{ matrix.arch }}-ubuntu-22.04' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/bootstrap:ubuntu-22.04-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -995,7 +995,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1008,7 +1008,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/dockerfile-build-env:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/dockerfile-build-env:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1098,7 +1098,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1111,7 +1111,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/nginx:sha-${{ github.sha }}-${{ matrix.arch }}-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/nginx:alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1209,7 +1209,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1222,7 +1222,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1286,7 +1286,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1299,7 +1299,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1431,7 +1431,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1444,7 +1444,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1508,7 +1508,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1521,7 +1521,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1653,7 +1653,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1666,7 +1666,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1730,7 +1730,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1743,7 +1743,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1875,7 +1875,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1888,7 +1888,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1952,7 +1952,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -1965,7 +1965,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2097,7 +2097,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2110,7 +2110,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2197,7 +2197,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2210,7 +2210,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2365,7 +2365,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2378,7 +2378,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2465,7 +2465,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2478,7 +2478,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2633,7 +2633,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2646,7 +2646,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2733,7 +2733,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2746,7 +2746,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2901,7 +2901,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -2914,7 +2914,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3001,7 +3001,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3014,7 +3014,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-apache:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-apache:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3169,7 +3169,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3182,7 +3182,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3251,7 +3251,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3264,7 +3264,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3401,7 +3401,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3414,7 +3414,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3483,7 +3483,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3496,7 +3496,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3633,7 +3633,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3646,7 +3646,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3715,7 +3715,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3728,7 +3728,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3865,7 +3865,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3878,7 +3878,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3947,7 +3947,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -3960,7 +3960,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4097,7 +4097,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4110,7 +4110,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4174,7 +4174,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4187,7 +4187,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4319,7 +4319,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4332,7 +4332,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4396,7 +4396,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4409,7 +4409,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4541,7 +4541,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4554,7 +4554,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4618,7 +4618,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4631,7 +4631,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4763,7 +4763,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4776,7 +4776,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4840,7 +4840,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4853,7 +4853,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx-dev:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx-dev:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4985,7 +4985,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -4998,7 +4998,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5090,7 +5090,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5103,7 +5103,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5263,7 +5263,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5276,7 +5276,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5368,7 +5368,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5381,7 +5381,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5541,7 +5541,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5554,7 +5554,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5646,7 +5646,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5659,7 +5659,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5819,7 +5819,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5832,7 +5832,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5924,7 +5924,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -5937,7 +5937,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php-nginx:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php-nginx:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6097,7 +6097,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6110,7 +6110,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.2-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6202,7 +6202,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6215,7 +6215,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.2-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.2-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6379,7 +6379,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6392,7 +6392,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.3-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6484,7 +6484,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6497,7 +6497,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.3-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.3-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6661,7 +6661,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6674,7 +6674,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.4-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6766,7 +6766,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6779,7 +6779,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.4-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.4-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6943,7 +6943,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -6956,7 +6956,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.5-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7048,7 +7048,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7061,7 +7061,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/php:sha-${{ github.sha }}-${{ matrix.arch }}-8.5-alpine' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/php:8.5-alpine-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7217,7 +7217,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/storage:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/storage:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7298,7 +7298,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/toolbox:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/toolbox:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7409,7 +7409,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' @@ -7422,7 +7422,7 @@ jobs: platforms: '${{ matrix.platform }}' load: true tags: 'ghcr.io/webdevops/vsftp:sha-${{ github.sha }}-${{ matrix.arch }}-latest' - no-cache: "${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.run_attempt > 1) }}" + no-cache: "${{ github.event_name == 'schedule' || github.run_attempt > 1 }}" cache-from: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }}' cache-to: 'type=gha,scope=webdevops/vsftp:latest-${{ matrix.arch }},mode=max' build-args: 'TARGETARCH=${{ matrix.arch }}' diff --git a/ci/src/GithubJobBuilder.php b/ci/src/GithubJobBuilder.php index 3deb72826..1e1660f40 100644 --- a/ci/src/GithubJobBuilder.php +++ b/ci/src/GithubJobBuilder.php @@ -217,8 +217,8 @@ private function buildPushWith(array $node): array 'platforms' => '${{ matrix.platform }}', 'load' => true, 'tags' => 'ghcr.io/webdevops/' . $node['image'] . ':sha-${{ github.sha }}-${{ matrix.arch }}-' . $node['tag'], - // Re-run all jobs on a PR to test a fresh build of the full image chain. - 'no-cache' => '${{ github.event_name == \'schedule\' || (github.event_name == \'pull_request\' && github.run_attempt > 1) }}', + // Re-run all jobs to test a fresh build of the full image chain. + 'no-cache' => '${{ github.event_name == \'schedule\' || github.run_attempt > 1 }}', ...$this->buildCacheWith($node), 'build-args' => implode("\n", [ 'TARGETARCH=${{ matrix.arch }}',