From b9d35d9335c5751f2932536f8672c6008a61abc4 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 1 Mar 2025 03:35:41 -0800 Subject: [PATCH] ci: fix the caching for docker builds [skip test] --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 33cdd2f8..01987ee0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -268,7 +268,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} platforms: ${{ matrix.platform }} tags: aminya/${{ matrix.container.image }}:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}:latest - cache-from: type=registry,ref=user/app:latest + cache-from: type=registry,ref=aminya/${{ matrix.container.image }}:latest cache-to: type=inline - name: Docker Readme for setup-cpp-${{matrix.container.distro }} @@ -288,7 +288,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} platforms: ${{ matrix.platform }} tags: aminya/${{ matrix.container.image }}-llvm:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-llvm:latest - cache-from: type=registry,ref=user/app:latest + cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-llvm:latest cache-to: type=inline - name: Docker Readme for setup-cpp-${{matrix.container.distro }}-llvm @@ -318,7 +318,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} platforms: ${{ matrix.platform }} tags: aminya/${{ matrix.container.image }}-gcc:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-gcc:latest - cache-from: type=registry,ref=user/app:latest + cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-gcc:latest cache-to: type=inline - name: Docker Readme for setup-cpp-${{matrix.container.distro }}-gcc @@ -349,7 +349,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} platforms: ${{ matrix.platform }} tags: aminya/${{ matrix.container.image }}-mingw:${{ matrix.container.tag }},aminya/${{ matrix.container.image }}-mingw:latest - cache-from: type=registry,ref=user/app:latest + cache-from: type=registry,ref=aminya/${{ matrix.container.image }}-mingw:latest cache-to: type=inline - name: Docker Readme for setup-cpp-${{matrix.container.distro }}-mingw