Skip to content

Commit b9d35d9

Browse files
committed
ci: fix the caching for docker builds [skip test]
1 parent db266b5 commit b9d35d9

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
@@ -268,7 +268,7 @@ jobs:
268268
push: ${{ github.event_name != 'pull_request' }}
269269
platforms: ${{ matrix.platform }}
270270
tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}:latest
271-
cache-from: type=registry,ref=user/app:latest
271+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}:latest
272272
cache-to: type=inline
273273

274274
- name: Docker Readme for setup-cpp-${{matrix.container.distro }}
@@ -288,7 +288,7 @@ jobs:
288288
push: ${{ github.event_name != 'pull_request' }}
289289
platforms: ${{ matrix.platform }}
290290
tags: aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-llvm:latest
291-
cache-from: type=registry,ref=user/app:latest
291+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-llvm:latest
292292
cache-to: type=inline
293293

294294
- name: Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm
@@ -318,7 +318,7 @@ jobs:
318318
push: ${{ github.event_name != 'pull_request' }}
319319
platforms: ${{ matrix.platform }}
320320
tags: aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-gcc:latest
321-
cache-from: type=registry,ref=user/app:latest
321+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-gcc:latest
322322
cache-to: type=inline
323323

324324
- name: Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc
@@ -349,7 +349,7 @@ jobs:
349349
push: ${{ github.event_name != 'pull_request' }}
350350
platforms: ${{ matrix.platform }}
351351
tags: aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-mingw:latest
352-
cache-from: type=registry,ref=user/app:latest
352+
cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-mingw:latest
353353
cache-to: type=inline
354354

355355
- name: Docker Readme for setup-cpp-${{matrix.container.distro }}-mingw

0 commit comments

Comments
 (0)