From f1881505c4c75b9a5fa25911b409a373d0ecf0b4 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 22 Mar 2024 00:43:57 +0000 Subject: [PATCH] fix: Use registry cache type instead of gha --- .github/workflows/docker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index accea7a3..d51f79ee 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -37,9 +37,10 @@ jobs: target: ${{ matrix.package }} platforms: ${{ matrix.platform }} push: true + provenance: false tags: ghcr.io/mohamedbassem/hoarder-${{ matrix.package }}:latest - cache-from: type=gha,scope=${{ matrix.package }}-${{ matrix.platform }} - cache-to: type=gha,mode=max,scope=${{ matrix.package }}-${{ matrix.platform }} + cache-from: type=registry,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }} + cache-to: type=registry,mode=max,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }} - name: Build ${{ matrix.package }} (release) uses: docker/build-push-action@v5 @@ -50,6 +51,7 @@ jobs: target: ${{ matrix.package }} platforms: ${{ matrix.platform }} push: true + provenance: false tags: ghcr.io/mohamedbassem/hoarder-${{ matrix.package }}:${{github.event.release.name}},ghcr.io/mohamedbassem/hoarder-${{ matrix.package }}:release - cache-from: type=gha,scope=${{ matrix.package }}-${{ matrix.platform }} - cache-to: type=gha,mode=max,scope=${{ matrix.package }}-${{ matrix.platform }} + cache-from: type=registry,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }} + cache-to: type=registry,mode=max,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }}