chore: docker build cache sharing

This commit is contained in:
TonyRL
2022-02-05 23:59:11 +08:00
parent df818fd697
commit b02747cdbb
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -48,5 +48,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
cache-from: type=gha,scope=docker-release
cache-to: type=gha,mode=max,scope=docker-release
+4 -2
View File
@@ -38,8 +38,10 @@ jobs:
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
cache-from: |
type=gha,scope=docker-test
type=gha,scope=docker-release
cache-to: type=gha,mode=max,scope=docker-test
- name: Run dockerfile
run: |