aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-30 08:53:45 +0200
committerfanquake <fanquake@gmail.com>2023-09-26 16:24:41 +0100
commit0db69a3d500020e11fd67c55732e0d02eb606204 (patch)
tree0f05c156e7917bcf95cfaa7f3f71392704e62ace
parent0df8f98d654291c08b9fe6cb11ec1685828f1504 (diff)
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
Github-Pull: #27777 Rebased-From: fa9c65a74cf18e9c75cd3472112d5197532ac2f2
-rwxr-xr-xci/test/04_install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/test/04_install.sh b/ci/test/04_install.sh
index a4f1a8a7ff..aff2442860 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -32,6 +32,8 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
if [ -n "${RESTART_CI_DOCKER_BEFORE_RUN}" ] ; then
echo "Restart docker before run to stop and clear all containers started with --rm"
systemctl restart docker
+ echo "Prune all dangling images"
+ docker image prune --force
fi
# shellcheck disable=SC2086