Skip to content

Commit

Permalink
fix: Use registry cache type instead of gha
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 22, 2024
1 parent 816d1d6 commit 12a8a80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
platforms: ${{ matrix.platform }}
push: true
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=gha,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }}
cache-to: type=gha,mode=max,ref=ghcr.io/mohamedbassem/hoarder-build-cache:${{ matrix.package }}

- name: Build ${{ matrix.package }} (release)
uses: docker/build-push-action@v5
Expand All @@ -51,5 +51,5 @@ jobs:
platforms: ${{ matrix.platform }}
push: true
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 }}

0 comments on commit 12a8a80

Please sign in to comment.