Skip to content

Commit d6aed56

Browse files
Use registry cache for Docker workflows
Co-authored-by: Florian Wuennemann <flowuenne@gmail.com>
1 parent b9ecf98 commit d6aed56

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docker-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
platforms: linux/amd64
7878
tags: ${{ steps.meta.outputs.tags }}
7979
labels: ${{ steps.meta.outputs.labels }}
80-
cache-from: type=gha,scope=${{ matrix.container.name }}
81-
cache-to: type=gha,mode=max,scope=${{ matrix.container.name }}
80+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/development:${{ matrix.container.name }}-buildcache
81+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/development:${{ matrix.container.name }}-buildcache,mode=max
8282

8383
- name: Get image reference for scan
8484
id: scanref

.github/workflows/docker-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ jobs:
7373
CONNECT_CLIENT_VERSION=${{ inputs.connect_client_version || '0.9' }}
7474
tags: ${{ steps.meta.outputs.tags }}
7575
labels: ${{ steps.meta.outputs.labels }}
76-
cache-from: type=gha,scope=${{ inputs.container }}
77-
cache-to: type=gha,mode=max,scope=${{ inputs.container }}
76+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ inputs.container }}:buildcache
77+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ inputs.container }}:buildcache,mode=max
7878

7979
- name: Create GitHub Release
8080
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8

0 commit comments

Comments
 (0)