Skip to content

Commit a9faacd

Browse files
ci(docker): Enable caching of Docker builds (#2389)
Also, use v6 of build push action
1 parent cf8fbad commit a9faacd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,14 @@ jobs:
290290
password: ${{ secrets.GITHUB_TOKEN }}
291291

292292
- name: Build and push
293-
uses: docker/build-push-action@v5
293+
uses: docker/build-push-action@v6
294294
with:
295295
context: .
296296
push: true
297297
platforms: linux/${{ matrix.platform }}
298298
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}-${{ matrix.platform }}
299+
cache-from: type=gha
300+
cache-to: type=gha,mode=max
299301

300302
multiarch-docker:
301303
name: Create Multi-Architecture Docker Image

0 commit comments

Comments
 (0)