From d6b06a26f52ff34434e277089f293c223a2b9467 Mon Sep 17 00:00:00 2001 From: Robbie Blaine <4052340+rblaine95@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:10:50 +0200 Subject: [PATCH] Enhanced docker build caching --- .github/workflows/docker.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 945cbdd..980f1e6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -27,8 +27,10 @@ jobs: with: platforms: linux/${{ matrix.arch }} push: false - cache-from: type=gha - cache-to: type=gha + cache-from: | + type=gha,scope=docker-build-polkadot-${{ matrix.arch }} + cache-to: | + type=gha,mode=max,scope=docker-build-polkadot-${{ matrix.arch }} context: . package: needs: [build] @@ -61,6 +63,9 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} push: true - cache-from: type=gha - cache-to: type=gha + cache-from: | + type=gha,scope=docker-build-polkadot + type=gha,scope=docker-build-polkadot-amd64 + cache-to: | + type=gha,mode=max,scope=docker-build-polkadot context: .