From 707679bdcd8355c7597a1babd118b6fae97cc691 Mon Sep 17 00:00:00 2001 From: nervo Date: Mon, 9 Sep 2024 19:52:34 +0200 Subject: [PATCH] ci: improved Docker cache (#2761) --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/release.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e21569045..ed5bc4793d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,9 +32,12 @@ jobs: compose.yaml compose.override.yaml set: | - *.cache-from=type=gha,scope=${{github.ref}} - *.cache-from=type=gha,scope=refs/heads/main - *.cache-to=type=gha,scope=${{github.ref}},mode=max + php.cache-from=type=gha,scope=php-${{github.ref}} + php.cache-from=type=gha,scope=php-refs/heads/main + php.cache-to=type=gha,scope=php-${{github.ref}},mode=max + pwa.cache-from=type=gha,scope=pwa-${{github.ref}} + pwa.cache-from=type=gha,scope=pwa-refs/heads/main + pwa.cache-to=type=gha,scope=pwa-${{github.ref}},mode=max - name: Start services run: docker compose up --wait --no-build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35ed5a0284..dcc270a25b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,12 @@ jobs: compose.yaml compose.override.yaml set: | - *.cache-from=type=gha,scope=${{github.ref}} - *.cache-from=type=gha,scope=refs/heads/main - *.cache-to=type=gha,scope=${{github.ref}},mode=max + php.cache-from=type=gha,scope=php-${{github.ref}} + php.cache-from=type=gha,scope=php-refs/heads/main + php.cache-to=type=gha,scope=php-${{github.ref}},mode=max + pwa.cache-from=type=gha,scope=pwa-${{github.ref}} + pwa.cache-from=type=gha,scope=pwa-refs/heads/main + pwa.cache-to=type=gha,scope=pwa-${{github.ref}},mode=max - name: Update API Platform run: docker compose run php composer update api-platform/core:${{ inputs.tag }}