diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 700fe34..6f55664 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,8 +50,8 @@ jobs: with: tags: ${{ matrix.fpm-image }}-amd64 context: fpm - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=fpm-${{ matrix.php }}-amd64 + cache-to: type=gha,mode=max,scope=fpm-${{ matrix.php }}-amd64 platforms: linux/amd64 build-args: | PHP_PATCH_VERSION=${{ matrix.phpPatch }} @@ -78,8 +78,8 @@ jobs: with: tags: ${{ matrix.fpm-image }}-arm64 context: fpm - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=fpm-${{ matrix.php }}-arm64 + cache-to: type=gha,mode=max,scope=fpm-${{ matrix.php }}-arm64 platforms: linux/arm64 build-args: | PHP_PATCH_VERSION=${{ matrix.phpPatch }}