Skip to content

Commit 65e0fa7

Browse files
committed
Cache
1 parent 7877a84 commit 65e0fa7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,22 @@ jobs:
3131
cache-binary: false
3232
install: true
3333
version: latest
34+
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
35+
with:
36+
path: ./docker-${{ matrix.arch }}-buildx
37+
key: docker-${{ matrix.arch }}-buildx-${{ hashFiles('**/Dockerfile') }}
38+
3439
- name: Build
3540
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3641
with:
3742
platforms: linux/${{ matrix.arch }}
3843
push: false
3944
cache-from: |
4045
type=gha,scope=docker-build-${{ matrix.arch }}
46+
type=local,src=./docker-${{ matrix.arch }}-buildx
4147
cache-to: |
4248
type=gha,mode=min,scope=docker-build-${{ matrix.arch }}
49+
type=local,mode=max,dest=./docker-${{ matrix.arch }}-buildx
4350
context: .
4451
build-args: >-
4552
${{ github.event_name == 'release' && format('VERSION={0}', github.ref_name) || '' }}

0 commit comments

Comments
 (0)