Skip to content

Commit 380565f

Browse files
committed
Use registry cache
1 parent fe48a0b commit 380565f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
load: true
5252
target: dev
5353
tags: ${{ env.TEST_TAG }}
54-
cache-from: type=gha
55-
cache-to: type=gha,mode=max
54+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-cache:buildcache
55+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-cache:buildcache,mode=max
5656

5757
# This is a barrier check to make sure we push a functional
5858
# docker image, we can avoid linting
@@ -137,8 +137,8 @@ jobs:
137137
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
138138
tags: ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
139139
labels: ${{ steps.meta.outputs.labels }}
140-
cache-from: type=gha
141-
cache-to: type=gha,mode=max
140+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-cache:buildcache
141+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/${{ env.IMAGE_NAME }}-cache:buildcache,mode=max
142142

143143
- name: Export digest
144144
run: |

0 commit comments

Comments
 (0)