Skip to content

Commit bf24614

Browse files
committed
fix docker build cache
1 parent 25a74eb commit bf24614

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ jobs:
6969
platforms: ${{ matrix.platform.platform }}
7070
labels: ${{ steps.meta.outputs.labels }}
7171
cache-from: |
72-
type=gha,scope=ci-cache
73-
cache-to: type=gha,mode=max,scope=ci-cache
72+
type=gha,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }}
73+
type=gha,scope=release-${{ matrix.version }}-${{ matrix.platform.id }}
74+
cache-to: |
75+
type=gha,mode=max,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }}
7476
push: false
7577
build-args: |
7678
VERSION=${{ matrix.version }}
@@ -85,9 +87,10 @@ jobs:
8587
platforms: ${{ matrix.platform.platform }}
8688
labels: ${{ steps.meta.outputs.labels }}
8789
cache-from: |
88-
type=gha,scope=ci-cache
89-
type=gha,scope=release-cache
90-
cache-to: type=gha,mode=max,scope=release-cache
90+
type=gha,scope=ci-${{ matrix.version }}-${{ matrix.platform.id }}
91+
type=gha,scope=release-${{ matrix.version }}-${{ matrix.platform.id }}
92+
cache-to: |
93+
type=gha,mode=max,scope=release-${{ matrix.version }}-${{ matrix.platform.id }}
9194
outputs: |
9295
type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
9396
build-args: |

0 commit comments

Comments
 (0)