diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 1ba5b29..cd08dd7 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -57,8 +57,8 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha,scope=standard - cache-to: type=gha,mode=max,scope=standard + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE }}:cache + cache-to: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}:cache,mode=max', env.REGISTRY, env.IMAGE) || '' }} platforms: linux/amd64,linux/arm64 provenance: false @@ -70,7 +70,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-bundled.outputs.tags }} labels: ${{ steps.meta-bundled.outputs.labels }} - cache-from: type=gha,scope=bundled - cache-to: type=gha,mode=max,scope=bundled + cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE }}:cache-bundled + cache-to: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}:cache-bundled,mode=max', env.REGISTRY, env.IMAGE) || '' }} platforms: linux/amd64,linux/arm64 provenance: false