fix(ci): use inline build cache (Forgejo registry can't write buildcache blobs) #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-buildcache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
build-and-pushjob on the last run pushed the image fine (:latestand:0.4.2.106) but then failed at:That failed the job and blocked the deploy to Media/citadel. It's a known limitation: Forgejo/Gitea's container registry doesn't reliably support buildkit's separate registry cache manifest (
cache-to: type=registry,mode=max).Fix
Switch to inline cache — cache metadata is embedded in the
:latestimage that already pushes successfully, so there's no separate cache blob write to fail:cache-from: type=registry,ref=…/baktainer:latestcache-to: type=inlineThe
:buildcachetag is no longer used.Note: the previous run's image is already in the registry, but the deploy never fired. After this merges, the next push to
mainwill build + deploy; or the deploy can be triggered manually.🤖 Generated with Claude Code