forgejo: builder prune by --keep-storage, not --filter until
The until=72h filter reclaimed 0 B against a 74 GB cache on the Pi's docker 29 daemon (proven by running the prune manually). --keep-storage 20GB reclaimed 53 GB and leaves a warm cache for the next site/portal build. Volumes are deliberately never pruned: CI's target/SDK/Gradle volumes are unused between runs but essential.
This commit is contained in:
parent
fbae77e985
commit
6db984f3d5
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,12 @@ spec:
|
||||||
echo "== before"; docker system df
|
echo "== before"; docker system df
|
||||||
docker container prune -f --filter until=48h || true
|
docker container prune -f --filter until=48h || true
|
||||||
docker image prune -af --filter until=168h || true
|
docker image prune -af --filter until=168h || true
|
||||||
docker builder prune -af --filter until=72h || true
|
# --filter until=72h reclaimed 0 B on a 74 GB cache (proven
|
||||||
|
# 2026-10-23): the filter is a no-op here, --keep-storage is
|
||||||
|
# deterministic and reclaimed 53 GB keeping a 20 GB warm cache.
|
||||||
|
# Never prune volumes: onionwire-target-ci and the mobile
|
||||||
|
# SDK/Gradle caches are "unused" between runs but essential.
|
||||||
|
docker builder prune -af --keep-storage 20GB || true
|
||||||
echo "== after"; docker system df
|
echo "== after"; docker system df
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue