Skip to content

Commit 0e22dad

Browse files
committed
Restore registry cache for builds
1 parent 75169fc commit 0e22dad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
push: true
6868
tags: ${{ steps.meta.outputs.tags }}
6969
labels: ${{ steps.meta.outputs.labels }}
70-
no-cache: true
70+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
71+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
7172

7273
- name: Image digest
7374
run: echo "Pushed ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} — digest ${{ steps.build-and-push.outputs.digest }}"

0 commit comments

Comments
 (0)