diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 091e7428..540aef69 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -24,14 +24,6 @@ jobs: - name: Checkout Repository uses: actions/checkout@v2 - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-${{ matrix.os }}-cache - key: ${{ runner.os }}-buildx-${{ matrix.os }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx-${{ matrix.os }}- - - name: Output Variables id: var run: | @@ -74,7 +66,7 @@ jobs: platforms: ${{ github.event_name != 'pull_request' && env.PLATFORMS || '' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/tmp/.buildx-${{ matrix.os }}-cache - cache-to: type=local,dest=/tmp/.buildx-${{ matrix.os }}-cache,mode=max + cache-from: type=gha,scope=${{ matrix.os }} + cache-to: type=gha,scope=${{ matrix.os }},mode=max target: final build-args: BUILDS_OS={{ matrix.os }}