ci: fix the caching for docker builds [skip test]

This commit is contained in:
Amin Yahyaabadi 2025-03-01 03:35:41 -08:00
parent db266b5009
commit b9d35d9335
1 changed files with 4 additions and 4 deletions

View File

@ -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