Skip to content

Commit 38f8201

Browse files
ci (docker.yml): use registry image cache
1 parent e0026ec commit 38f8201

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,9 @@ jobs:
100100
tags: ${{ steps.meta.outputs.tags }}
101101
labels: ${{ steps.meta.outputs.labels }}
102102
platforms: linux/amd64,linux/arm64/v8
103-
cache-from: type=gha
104-
cache-to: type=gha,mode=max
103+
cache-from: |
104+
type=gha,scope=${{ github.workflow }}
105+
type=registry,ref=ghcr.io/${{ env.REGISTRY_USER }}/${{ env.IMAGE }}:buildcache
106+
cache-to: |
107+
type=gha,scope=${{ github.workflow }},mode=max
108+
type=registry,ref=ghcr.io/${{ env.REGISTRY_USER }}/${{ env.IMAGE }}:buildcache,mode=max

0 commit comments

Comments
 (0)