forked from LiamAEdwards/SS14-Docker-Linux-Server
Use registry cache for buildx
This commit is contained in:
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -65,9 +65,9 @@ jobs:
|
||||
context: .
|
||||
platforms: linux/arm64
|
||||
cache-from: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }}
|
||||
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-arm64
|
||||
cache-to: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }},mode=max,compression=zstd
|
||||
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-arm64,mode=max
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64
|
||||
@@ -130,9 +130,9 @@ jobs:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
cache-from: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }}
|
||||
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-amd64
|
||||
cache-to: |
|
||||
type=gha,scope=${{ env.BUILD_CACHE_SCOPE }},mode=max,compression=zstd
|
||||
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache-amd64,mode=max
|
||||
push: true
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
|
||||
Reference in New Issue
Block a user