From 931b9becea6209ef56f15d033dffcfabc6203e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Fri, 6 Sep 2024 11:15:45 +0200 Subject: [PATCH] Improve caching in GitHub Action workflows --- .github/workflows/push.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 0468d5f..c420de4 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -39,6 +39,8 @@ jobs: context: . platforms: ${{ matrix.platform }} build-args: "php=${{ matrix.php }}" + cache-from: type=gha + cache-to: type=gha,mode=max labels: | org.opencontainers.image.title=PHP ${{ matrix.php }} org.opencontainers.image.description=Docker image for PHP ${{ matrix.php }} FPM diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 692253a..0202b81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,8 @@ jobs: context: . platforms: linux/amd64,linux/arm64 build-args: "php=${{ matrix.php }}" + cache-from: type=gha + cache-to: type=gha,mode=max labels: | org.opencontainers.image.title=PHP ${{ matrix.php }} org.opencontainers.image.description=Docker image for PHP ${{ matrix.php }} FPM