Skip to content

Commit b0d862b

Browse files
committed
Use the registry as a cache
1 parent 7868e45 commit b0d862b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ jobs:
4141
context: .
4242
load: true
4343
tags: ${{ env.TEST_TAG }}
44-
cache-from: type=gha
45-
cache-to: type=gha,mode=max
44+
cache-from: type=registry,ref=${{ steps.image_name.outputs.registry }}/${{ steps.image_name.outputs.repository }}:latest
4645
- name: Test
4746
run: >-
4847
docker run --rm
@@ -69,5 +68,5 @@ jobs:
6968
push: ${{ github.event_name == 'push' && contains(github.ref, '/tags/v') }}
7069
tags: ${{ steps.meta.outputs.tags }}
7170
labels: ${{ steps.meta.outputs.labels }}
72-
cache-from: type=gha
73-
cache-to: type=gha,mode=max
71+
cache-from: type=registry,ref=${{ steps.image_name.outputs.registry }}/${{ steps.image_name.outputs.repository }}:latest
72+
cache-to: type=inline

0 commit comments

Comments
 (0)