Skip to content

Commit 28bc55f

Browse files
committed
Fix Docker caching
1 parent 011415c commit 28bc55f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/docker.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ jobs:
2828
with:
2929
jvm: zulu:11.0.10
3030
apps: sbt scala
31+
- name: Docker cache
32+
id: cache-primes
33+
uses: actions/cache@v4
34+
with:
35+
path: docker-cache
36+
key: docker-cache
3137
- name: Compile and prepare Docker configuration
3238
run: sbt Docker/stage
3339
env:
@@ -60,8 +66,8 @@ jobs:
6066
tags: ${{ steps.meta.outputs.tags }}
6167
labels: ${{ steps.meta.outputs.labels }}
6268
push: false
63-
cache-from: type=gha
64-
cache-to: type=gha,mode=max
69+
cache-from: type=local,src=docker-cache
70+
cache-to: type=local,dest=docker-cache,mode=max
6571
- name: Test image
6672
env:
6773
DOCKER_TAG: ${{ steps.meta.outputs.tags }}
@@ -75,8 +81,8 @@ jobs:
7581
push: true
7682
tags: ${{ steps.meta.outputs.tags }}
7783
labels: ${{ steps.meta.outputs.labels }}
78-
cache-from: type=gha
79-
cache-to: type=gha,mode=max
84+
cache-from: type=local,src=docker-cache
85+
cache-to: type=local,dest=docker-cache,mode=max
8086
- name: Attest
8187
uses: actions/attest-build-provenance@v2
8288
id: attest

0 commit comments

Comments
 (0)