From 8db0323568c2ad1312754a07af3b060bc10b38ee Mon Sep 17 00:00:00 2001 From: ijo42 Date: Tue, 7 Jun 2022 14:49:24 +0500 Subject: [PATCH] chore(ci): use registry cache exproter --- .github/workflows/autobuild.yaml | 8 ++++---- .github/workflows/manualbuild.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index eb8483d..6622f09 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -31,8 +31,8 @@ jobs: tags: ${{ env.DOCKER_IMAGE }} push: true platforms: linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache + cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max - name: Build and push arm64 uses: docker/build-push-action@v3 @@ -41,5 +41,5 @@ jobs: tags: ${{ env.DOCKER_IMAGE }}:latest-arm64 push: true platforms: linux/arm64 - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64 + cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64,mode=max diff --git a/.github/workflows/manualbuild.yaml b/.github/workflows/manualbuild.yaml index 5553a69..f175534 100644 --- a/.github/workflows/manualbuild.yaml +++ b/.github/workflows/manualbuild.yaml @@ -42,8 +42,8 @@ jobs: build-args: | "LAUNCHER_VERSION=${{ github.event.inputs.launcher_ref }}" "RUNTIME_VERSION=${{ github.event.inputs.runtime_ref }}" - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache + cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache,mode=max - name: Build and push arm64 uses: docker/build-push-action@v3 @@ -55,6 +55,6 @@ jobs: build-args: | "LAUNCHER_VERSION=${{ github.event.inputs.launcher_ref }}" "RUNTIME_VERSION=${{ github.event.inputs.runtime_ref }}" - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64 + cache-to: type=registry,ref=${{ env.DOCKER_IMAGE }}:buildcache-arm64,mode=max