Skip to content

Commit a76dd1b

Browse files
committed
ci: improve docker cache hits by using the exact tag
1 parent 12841b3 commit a76dd1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ jobs:
280280
provenance: false
281281
platforms: ${{ matrix.platform }}
282282
tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
283-
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}:latest
283+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
284284
cache-to: type=inline
285285

286286
- name: Tag latest locally
@@ -311,7 +311,7 @@ jobs:
311311
provenance: false
312312
platforms: ${{ matrix.platform }}
313313
tags: aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
314-
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-llvm:latest
314+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
315315
cache-to: type=inline
316316

317317
- name: Tag latest locally
@@ -352,7 +352,7 @@ jobs:
352352
provenance: false
353353
platforms: ${{ matrix.platform }}
354354
tags: aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
355-
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-gcc:latest
355+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
356356
cache-to: type=inline
357357

358358
- name: Tag latest locally
@@ -394,7 +394,7 @@ jobs:
394394
provenance: false
395395
platforms: ${{ matrix.platform }}
396396
tags: aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
397-
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-mingw:latest
397+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }}-${{ steps.platform.outputs.suffix }}
398398
cache-to: type=inline
399399

400400
- name: Tag latest locally

0 commit comments

Comments
 (0)