fix: clean buildx caches and dangling builder volumes in mintel-optimizer
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 7m37s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m27s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m33s
Monorepo Pipeline / 🧹 Lint (push) Successful in 4m10s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped

This commit is contained in:
2026-06-03 16:46:42 +02:00
parent 9f8eab2ad2
commit 0fc4ddbc28

View File

@@ -56,7 +56,17 @@ fi
# 3. Global Docker Pruning
echo "🧹 Pruning Docker resources..."
docker system prune -af --filter "until=24h"
echo "🧹 Pruning BuildKit builder containers and cache..."
# Remove orphaned buildkit containers to release volume locks
docker rm -f $(docker ps -aq --filter name=buildx_buildkit_builder) 2>/dev/null || true
docker builder prune -af || true
docker buildx prune -af || true
echo "🧹 Pruning Docker volumes..."
docker volume prune -f
# Force remove dangling buildx state volumes that might bypass standard prune
docker volume ls -q | grep buildx | xargs -r docker volume rm 2>/dev/null || true
echo "✅ Optimization complete!"
df -h /mnt/HC_Volume_104796416