mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
Add aggressive docker image cleanup to prevent disk full (#5841)
The existing cleanup only removed dangling images. Now also removes images older than 24h to prevent disk space exhaustion while keeping recent images available for rollback. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -401,7 +401,9 @@ jobs:
|
||||
fi
|
||||
echo "Admin image verification passed"
|
||||
|
||||
# Cleanup
|
||||
# Cleanup - remove old images to prevent disk full
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
# Remove images older than 24h (keeps recent images for rollback)
|
||||
docker image prune -a -f --filter "until=24h" || true
|
||||
DEPLOY_SCRIPT
|
||||
|
||||
Reference in New Issue
Block a user