From ea77cc85c907707db78156d760e41cf42706d851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Zwoli=C5=84ski?= Date: Thu, 16 Jan 2025 15:28:49 +0100 Subject: [PATCH] chore(ci): fix docker cache overwriting (#513) --- .github/actions/local-devnet/action.yml | 49 +++++++++---------------- .github/workflows/ci.yml | 8 ++-- 2 files changed, 20 insertions(+), 37 deletions(-) diff --git a/.github/actions/local-devnet/action.yml b/.github/actions/local-devnet/action.yml index 53202162..273146c5 100644 --- a/.github/actions/local-devnet/action.yml +++ b/.github/actions/local-devnet/action.yml @@ -9,48 +9,33 @@ runs: uses: actions/cache@v4 with: path: ${{ runner.temp }}/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} + key: ${{ runner.os }}-buildx-${{ hashFiles('./ci/Dockerfile*', './ci/*.yml', './ci/*.sh') }} restore-keys: | ${{ runner.os }}-buildx- - name: Build the docker-compose stack shell: bash run: | - cache_from="type=local,src=${{ runner.temp }}/.buildx-cache" - cache_to="type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=max" - cat > ci/cache.json <