Skip to content

Commit 6712d72

Browse files
committed
chore(build): use gha cache for PRs
1 parent d7517d7 commit 6712d72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ jobs:
7070
file: docker/kty.dockerfile
7171
platforms: ${{ inputs.os }}/${{ inputs.arch }}
7272

73-
cache-from: type=registry,ref=${{ env.CACHE }}
74-
cache-to: type=registry,ref=${{ env.CACHE }},mode=max
73+
cache-from: |
74+
${{ inputs.arch == "arm64" && "type=registry,ref=${{ env.CACHE }}" || "type=gha" }}
75+
cache-to: |
76+
${{ inputs.arch == "arm64" && "type=registry,ref=${{ env.CACHE }},mode=max" || "type=gha" }}
7577
7678
labels: ${{ steps.meta.outputs.labels }}
7779
annotations: ${{ steps.meta.outputs.annotations }}

0 commit comments

Comments
 (0)