summaryrefslogtreecommitdiffstats
path: root/image-builder/build-sbo-testbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'image-builder/build-sbo-testbuild.sh')
-rwxr-xr-ximage-builder/build-sbo-testbuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/image-builder/build-sbo-testbuild.sh b/image-builder/build-sbo-testbuild.sh
index 8d08a03..d40ccb1 100755
--- a/image-builder/build-sbo-testbuild.sh
+++ b/image-builder/build-sbo-testbuild.sh
@@ -135,6 +135,13 @@ DOCKERFILE
_warn " push failed for ${TB_TAG}."
return 1
fi
+
+ # Drop the image this rebuild superseded rather than leaving it resident
+ # until a daily prune; see the same step in build-full-image.sh for why
+ # that mattered. Best-effort: a failed prune costs space, not correctness.
+ _log " Pruning superseded images..."
+ docker image prune -f >/dev/null 2>&1 || _warn " image prune failed (ignored)"
+
_log "=== Done: ${TB_TAG} ==="
}