Skip to content

Commit 0d584fe

Browse files
committed
more cache
1 parent 75b84de commit 0d584fe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,22 @@ jobs:
113113
key: buildx-x86_64-bootstrap-${{ github.sha }}
114114
fail-on-cache-miss: true
115115

116+
- name: Cache Docker cache mounts
117+
if: ${{ github.ref_type != 'tag' }}
118+
uses: actions/cache@v5
119+
with:
120+
path: .cache/buildx-${{ matrix.platform }}-cache-mounts
121+
key: buildx-${{ matrix.platform }}-cache-mounts-${{ github.sha }}
122+
restore-keys: |
123+
buildx-${{ matrix.platform }}-cache-mount
124+
125+
- name: Restore Docker cache mounts
126+
if: ${{ github.ref_type != 'tag' }}
127+
uses: reproducible-containers/buildkit-cache-dance@v3
128+
with:
129+
builder: ${{ steps.setup-buildx.outputs.name }}
130+
cache-dir: .cache/buildx-${{ matrix.platform }}-cache-mounts
131+
116132
- name: Build image
117133
uses: docker/build-push-action@v6
118134
with:

0 commit comments

Comments
 (0)