⚙️ chore: Update Docker publish workflow to use GitHub Action cache.

This commit is contained in:
jarvis2f 2025-02-07 16:13:51 +08:00
parent a48a62c3d6
commit 02a4af9dad

View file

@ -63,8 +63,8 @@ jobs:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ matrix.platform_tag }}
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ matrix.platform_tag }},mode=max
cache-from: type=gha,scope=build-${{ matrix.platform_tag }}
cache-to: type=gha,scope=build-${{ matrix.platform_tag }},mode=max
- name: Export digest
run: |