fix: use mode=min for Docker build cache to avoid Hub blob limits
Some checks failed
Build Docker Image / build (push) Failing after 8m12s

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) <noreply@anthropic.com>
This commit is contained in:
cal 2026-03-16 17:02:15 +00:00
parent 47dcdf00c4
commit 84a45d9caa

View File

@ -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'