From 84a45d9caa63b7faf81cfff1d9a03e8b5b3f9827 Mon Sep 17 00:00:00 2001 From: cal Date: Mon, 16 Mar 2026 17:02:15 +0000 Subject: [PATCH] fix: use mode=min for Docker build cache to avoid Hub blob limits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mode=max pushes all intermediate layers to Docker Hub as cache, which exceeds blob size limits when the base image changes. mode=min only caches final image layers — smaller push, still provides cache hits for the most common rebuild scenario (code changes, same base). Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index eeeb242..ff09481 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -56,7 +56,7 @@ jobs: push: true tags: ${{ steps.tags.outputs.tags }} cache-from: type=registry,ref=manticorum67/paper-dynasty-database:buildcache - cache-to: type=registry,ref=manticorum67/paper-dynasty-database:buildcache,mode=max + cache-to: type=registry,ref=manticorum67/paper-dynasty-database:buildcache,mode=min - name: Tag release if: success() && github.ref == 'refs/heads/main'