Skip to content

Commit eca42f3

Browse files
Use registry buildcache
1 parent e75c545 commit eca42f3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/build-image.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
platforms: linux/amd64
4040
push: ${{ github.event_name == 'push' }}
4141
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:amd64-${{ github.sha }}
42-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
43-
cache-to: type=inline
42+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64
43+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64,mode=max
4444
provenance: false
4545
sbom: false
4646
secrets: |
@@ -68,8 +68,8 @@ jobs:
6868
platforms: linux/arm64
6969
push: ${{ github.event_name == 'push' }}
7070
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64-${{ github.sha }}
71-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
72-
cache-to: type=inline
71+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-arm64
72+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-arm64,mode=max
7373
provenance: false
7474
sbom: false
7575
secrets: |

0 commit comments

Comments
 (0)