Failed to enable caching for build container #274

Open
opened 2026-05-16 16:27:54 +00:00 by npub15skvhry · 0 comments

Sorry i didn't know where exactly i should create this issue in. it's actually more related to Gitea than Flotilla. The current flotilla container image is 556MB so i decided to working on optimizing on . the result is my fork

the problem is wanted to enable build layer caching so building process will skip some already done sections and use cache from previous build, so i tried adding cache-from: type=gha and cache-to: type=gha,mode=max to docker/build-push-action but seems it doesn't work in Gitea. maybe it is supported but current Gitea settings are wrong, i don't know. even if it's not supported, i think we can combine Gitea Action Cache and docker local cache backend to acheived that.
for now i remove cache-from and cache-to from my fork(and PR it) so this can be decided later :)

Sorry i didn't know where exactly i should create this issue in. it's actually more related to Gitea than Flotilla. The current flotilla container image is 556MB so i decided to working on optimizing on . the result is [my fork](https://gitea.coracle.social/npub15skvhry/flotilla) the problem is wanted to enable build layer caching so building process will skip some already done sections and use cache from previous build, so i tried adding `cache-from: type=gha` and `cache-to: type=gha,mode=max` to `docker/build-push-action` but seems [it doesn't work in Gitea](https://gitea.coracle.social/npub15skvhry/flotilla/actions/runs/62/jobs/70). maybe it is supported but current Gitea settings are wrong, i don't know. even if it's not supported, i think we can combine [Gitea Action Cache](https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd) and [docker `local` cache backend](https://docs.docker.com/build/cache/backends/) to acheived that. for now i remove `cache-from` and `cache-to` from my fork(and PR it) so this can be decided later :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coracle/flotilla#274