chore(ci): aggressively prune buildkit caches inside host builder containers
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 28s
Build & Deploy / 🧪 QA (push) Successful in 1m42s
Build & Deploy / 🏗️ Build (push) Successful in 3m45s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 48s
Build & Deploy / 🔔 Notify (push) Successful in 1s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 28s
Build & Deploy / 🧪 QA (push) Successful in 1m42s
Build & Deploy / 🏗️ Build (push) Successful in 3m45s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 48s
Build & Deploy / 🔔 Notify (push) Successful in 1s
This commit is contained in:
@@ -59,6 +59,11 @@ jobs:
|
|||||||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}" || true
|
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}" || true
|
||||||
echo "=== Host Docker Info ==="
|
echo "=== Host Docker Info ==="
|
||||||
docker info || true
|
docker info || true
|
||||||
|
echo "Pruning host Buildkit builder caches aggressively..."
|
||||||
|
for container in $(docker ps --filter "name=buildx_buildkit_builder" --format "{{.Names}}"); do
|
||||||
|
echo "Pruning Buildkit inside container: $container"
|
||||||
|
docker exec -i "$container" buildctl prune --all || true
|
||||||
|
done
|
||||||
echo "Purging old build layers, unused volumes and images..."
|
echo "Purging old build layers, unused volumes and images..."
|
||||||
docker builder prune -a -f || true
|
docker builder prune -a -f || true
|
||||||
docker volume prune -f || true
|
docker volume prune -f || true
|
||||||
|
|||||||
Reference in New Issue
Block a user