Skip to content

Commit d7f78c7

Browse files
committed
ci(gha): Enable gha cache (mode=min) in docker/build-push-action
Related: #627 (comment)
1 parent 0887813 commit d7f78c7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deploy-master.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
with:
4141
pull: true
4242
push: true
43+
cache-from: "type=gha"
44+
cache-to: "type=gha,mode=min"
4345
tags: "ocamlsf/learn-ocaml:master"
4446
platforms: "linux/amd64,linux/arm64/v8"
4547
labels: |
@@ -84,6 +86,8 @@ jobs:
8486
pull: true
8587
# load: true # implied by "driver: docker"
8688
push: true
89+
cache-from: "type=gha"
90+
cache-to: "type=gha,mode=min"
8791
target: client
8892
tags: "ocamlsf/learn-ocaml-client:master"
8993
platforms: "linux/amd64,linux/arm64/v8"

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ jobs:
124124
with:
125125
pull: true
126126
push: true
127+
cache-from: "type=gha"
128+
cache-to: "type=gha,mode=min"
127129
tags: |
128130
ocamlsf/learn-ocaml:latest
129131
ocamlsf/learn-ocaml:${{ steps.tag.outputs.tag }}
@@ -174,6 +176,8 @@ jobs:
174176
pull: true
175177
# load: true # implied by "driver: docker"
176178
push: true
179+
cache-from: "type=gha"
180+
cache-to: "type=gha,mode=min"
177181
target: client
178182
tags: |
179183
ocamlsf/learn-ocaml-client:latest

0 commit comments

Comments
 (0)