Skip to content

Commit 905f672

Browse files
committed
fix: use scoped caches for each image
1 parent 6ed5c2d commit 905f672

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ jobs:
173173
labels: ${{ steps.meta.outputs.labels }}
174174
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
175175
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
176-
cache-from: type=gha
177-
cache-to: type=gha,mode=max
176+
cache-from: type=gha,scope=buildkit-amd64
177+
cache-to: type=gha,mode=max,scope=buildkit-amd64
178178
github-token: ${{ secrets.GITHUB_TOKEN }}
179179
build-args: |
180180
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -232,8 +232,8 @@ jobs:
232232
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
233233
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
234234
file: Dockerfile.distroless
235-
cache-from: type=gha
236-
cache-to: type=gha,mode=max
235+
cache-from: type=gha,scope=buildkit-distroless-amd64
236+
cache-to: type=gha,mode=max,scope=buildkit-distroless-amd64
237237
github-token: ${{ secrets.GITHUB_TOKEN }}
238238
build-args: |
239239
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -289,8 +289,8 @@ jobs:
289289
labels: ${{ steps.meta.outputs.labels }}
290290
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
291291
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
292-
cache-from: type=gha
293-
cache-to: type=gha,mode=max
292+
cache-from: type=gha,scope=buildkit-arm64
293+
cache-to: type=gha,mode=max,scope=buildkit-arm64
294294
github-token: ${{ secrets.GITHUB_TOKEN }}
295295
build-args: |
296296
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -348,8 +348,8 @@ jobs:
348348
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
349349
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
350350
file: Dockerfile.distroless
351-
cache-from: type=gha
352-
cache-to: type=gha,mode=max
351+
cache-from: type=gha,scope=buildkit-distroless-arm64
352+
cache-to: type=gha,mode=max,scope=buildkit-distroless-arm64
353353
github-token: ${{ secrets.GITHUB_TOKEN }}
354354
build-args: |
355355
VERSION=${{ needs.generate-metadata.outputs.VERSION }}

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ jobs:
143143
labels: ${{ steps.meta.outputs.labels }}
144144
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
145145
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
146-
cache-from: type=gha
147-
cache-to: type=gha,mode=max
146+
cache-from: type=gha,scope=buildkit-amd64
147+
cache-to: type=gha,mode=max,scope=buildkit-amd64
148148
github-token: ${{ secrets.GITHUB_TOKEN }}
149149
build-args: |
150150
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -200,8 +200,8 @@ jobs:
200200
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
201201
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
202202
file: Dockerfile.distroless
203-
cache-from: type=gha
204-
cache-to: type=gha,mode=max
203+
cache-from: type=gha,scope=buildkit-distroless-amd64
204+
cache-to: type=gha,mode=max,scope=buildkit-distroless-amd64
205205
github-token: ${{ secrets.GITHUB_TOKEN }}
206206
build-args: |
207207
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -255,8 +255,8 @@ jobs:
255255
labels: ${{ steps.meta.outputs.labels }}
256256
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
257257
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
258-
cache-from: type=gha
259-
cache-to: type=gha,mode=max
258+
cache-from: type=gha,scope=buildkit-arm64
259+
cache-to: type=gha,mode=max,scope=buildkit-arm64
260260
github-token: ${{ secrets.GITHUB_TOKEN }}
261261
build-args: |
262262
VERSION=${{ needs.generate-metadata.outputs.VERSION }}
@@ -312,8 +312,8 @@ jobs:
312312
tags: ghcr.io/${{ github.repository_owner }}/tinyauth
313313
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
314314
file: Dockerfile.distroless
315-
cache-from: type=gha
316-
cache-to: type=gha,mode=max
315+
cache-from: type=gha,scope=buildkit-distroless-arm64
316+
cache-to: type=gha,mode=max,scope=buildkit-distroless-arm64
317317
github-token: ${{ secrets.GITHUB_TOKEN }}
318318
build-args: |
319319
VERSION=${{ needs.generate-metadata.outputs.VERSION }}

0 commit comments

Comments
 (0)