Skip to content

Commit 6397d8f

Browse files
authored
Merge pull request #1811 from rabbitmq/test-ci/docker-cache
Update docker cache in CI [skip ci]
2 parents c096404 + f62476c commit 6397d8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ jobs:
176176
push: true
177177
tags: ${{ steps.meta.outputs.tags }}
178178
labels: ${{ steps.meta.outputs.labels }}
179+
cache-from: type=gha
180+
cache-to: type=gha,mode=max
179181

180182
- name: Build to TAR
181183
id: build_tar
@@ -187,6 +189,9 @@ jobs:
187189
labels: ${{ steps.meta.outputs.labels }}
188190
outputs: |
189191
type=docker,dest=./operator.tar
192+
# Workaround to "disable" cache from registry
193+
cache-from: type=local,src=${{ runner.temp }}/.buildx-cache
194+
cache-to: type=local,dest=${{ runner.temp }}/.buildx-cache-new,mode=min
190195

191196
- name: Upload Operator artifact
192197
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)