Skip to content

Commit

Permalink
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
Browse files Browse the repository at this point in the history
Github-Pull: #27777
Rebased-From: fa9c65a
  • Loading branch information
MarcoFalke authored and fanquake committed Sep 26, 2023
1 parent 0df8f98 commit 0db69a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/test/04_install.sh
Expand Up @@ -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
Expand Down

0 comments on commit 0db69a3

Please sign in to comment.