Skip to content

Commit 8e88af7

Browse files
authored
Merge pull request #10 from brianhlin/cache-per-workflow-run
Add the workflow run ID to the cache key
2 parents 841affc + a02debe commit 8e88af7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/cache@v2
3636
with:
3737
path: /tmp/.buildx-cache
38-
key: base-${{ matrix.repo }}-buildx-${{ github.sha }}
38+
key: base-${{ matrix.repo }}-buildx-${{ github.sha }}-${{ github.run_id }}
3939
# allow cache hits from previous runs of the current branch,
4040
# parent branch, then upstream branches, in that order
4141
restore-keys: |
@@ -70,7 +70,7 @@ jobs:
7070
uses: actions/cache@v2
7171
with:
7272
path: /tmp/.buildx-cache
73-
key: base-${{ matrix.repo }}-buildx-${{ github.sha }}
73+
key: base-${{ matrix.repo }}-buildx-${{ github.sha }}-${{ github.run_id }}
7474

7575
- name: Generate tag list
7676
id: generate-tag-list

0 commit comments

Comments
 (0)