Skip to content

Commit ca30119

Browse files
committed
Cache docker build
1 parent 04e54db commit ca30119

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-zephyr-container.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
type=sha
5353
type=raw,value=latest,enable={{is_default_branch}}
5454
55+
- name: Set up Docker Buildx
56+
uses: docker/setup-buildx-action@v3
57+
5558
- name: Build and push
5659
uses: docker/build-push-action@v6
5760
with:
@@ -60,6 +63,8 @@ jobs:
6063
push: ${{ github.event_name != 'pull_request' }}
6164
tags: ${{ steps.meta.outputs.tags }}
6265
labels: ${{ steps.meta.outputs.labels }}
66+
cache-from: type=gha
67+
cache-to: type=gha,mode=max
6368

6469
- name: Set image reference output
6570
id: image-ref

0 commit comments

Comments
 (0)