fix(ci): make registry cache export non-fatal

The Forgejo registry occasionally returns 400 on large cache layer
blob uploads, failing the entire build even though the image itself
pushed successfully. Adding ignore-error=true to cache-to so cache
failures don't block deployments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 11:36:27 -04:00
parent 8276e5050a
commit 717ac1b5d7
+1 -1
View File
@@ -179,4 +179,4 @@ jobs:
# pruned. `mode=max` exports all intermediate layers, not
# just the final image, which is what gives the ~80% speedup.
cache-from: type=registry,ref=${{ env.IMAGE }}:cache
cache-to: type=registry,ref=${{ env.IMAGE }}:cache,mode=max
cache-to: type=registry,ref=${{ env.IMAGE }}:cache,mode=max,ignore-error=true