Skip to content

Commit 37859ea

Browse files
committed
perf(ci): switch docker builds to registry cache
Replace GHA cache (Blacksmith-proxied, flaky 502s) with GHCR registry cache. Benchmarked at 2x faster on both cold and warm builds.
1 parent fa379d1 commit 37859ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ jobs:
163163
VERSION=${{ steps.version.outputs.tag }}
164164
BUILD_DATE=${{ steps.builddate.outputs.timestamp }}
165165
GIT_SHA=${{ github.sha }}
166-
cache-from: type=gha,scope=${{ matrix.service }}-${{ matrix.platform.arch }}
167-
cache-to: type=gha,mode=max,scope=${{ matrix.service }}-${{ matrix.platform.arch }}
166+
cache-from: type=registry,ref=${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:cache-${{ matrix.platform.arch }}
167+
cache-to: type=registry,ref=${{ env.IMAGE_PREFIX }}-${{ matrix.service }}:cache-${{ matrix.platform.arch }},mode=max
168168

169169
- name: Scan image for vulnerabilities
170170
if: always() && steps.build.outcome != 'cancelled'

0 commit comments

Comments
 (0)