Skip to content

Commit dd36c10

Browse files
committed
Use docker context hash for cache key
1 parent 76c4c19 commit dd36c10

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/env_setup/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ runs:
4646
id: cache
4747
with:
4848
path: go-build-cache
49-
key: ${{ runner.os }}-go-build-cache-${{ env.BRANCH_NAME_HASH }}-${{ steps.context-hash.outputs.hash }}
49+
key: ${{ runner.os }}-go-build-cache-${{ steps.context-hash.outputs.hash }}
5050
restore-keys: |
51-
${{ runner.os }}-go-build-cache-${{ env.BRANCH_NAME_HASH }}-
52-
${{ runner.os }}-go-build-cache-${{ env.BRANCH_MAIN_HASH }}-
51+
${{ runner.os }}-go-build-cache-
5352
5453
- name: Restore Docker cache mounts
5554
uses: reproducible-containers/buildkit-cache-dance@5b81f4d29dc8397a7d341dba3aeecc7ec54d6361 #v3.3.0

0 commit comments

Comments
 (0)