Skip to content

Commit 1d3ef31

Browse files
author
Alan Christie
committed
build: Attempt to fix cache warnings
1 parent 9cf7dd3 commit 1d3ef31

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,18 @@ jobs:
5252
uses: docker/setup-qemu-action@v3
5353
- name: Set up Docker Buildx
5454
uses: docker/setup-buildx-action@v3
55+
- name: Cache Docker layers
56+
uses: actions/cache@v4
57+
with:
58+
path: /tmp/.buildx-cache
59+
key: ${{ runner.os }}-buildx-${{ github.sha }}
60+
restore-keys: |
61+
${{ runner.os }}-buildx-
5562
- name: Build
5663
uses: docker/build-push-action@v6
5764
with:
5865
context: .
5966
platforms: linux/amd64,linux/arm64
6067
tags: ${{ github.repository_owner }}/squonk2-fastapi-ws-event-stream:${{ env.GITHUB_REF_SLUG }}
68+
cache-from: type=local,src=/tmp/.buildx-cache
69+
cache-to: type=local,dest=/tmp/.buildx-cache

0 commit comments

Comments
 (0)