aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-30 08:53:45 +0200
committerfanquake <fanquake@gmail.com>2023-06-15 10:38:10 +0100
commit71f626ef2cde995927784d370451dd334a022069 (patch)
tree7c23ee613a81f0d07545982a2ce789df00388ad0
parentcda3fe28083b1c9afe2629882c9af4b3984ccb6f (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 1024222e96..fcf0bfd49e 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -41,6 +41,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