From 368969224c34f6057e86e5e3319a3e45f6925122 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Tue, 14 Oct 2025 18:14:04 +0000 Subject: Add Docker build caching to the Publish workflow. Prefer the GitHub Actions cache, and fall back to GitHub Container Registry if needed. --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce4bb81e9..786e66207 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -104,6 +104,12 @@ jobs: context: . file: ${{ matrix.image.dockerfile }} platforms: linux/arm64,linux/amd64 + cache-from: | + type=gha,scope=${{ matrix.image.name }} + type=registry,ref=${{ matrix.image.repository_ghcr }}:cache + cache-to: | + type=gha,scope=${{ matrix.image.name }},mode=max + type=registry,ref=${{ matrix.image.repository_ghcr }}:cache,mode=max # TODO: clean up build arg and environment variable naming. build-args: | CI_COMMIT_BRANCH=${{ github.ref_name }} -- cgit v1.2.3-54-g00ecf