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: bitcoin#27777
Rebased-From: fa9c65a
  • Loading branch information
MarcoFalke authored and fanquake committed Jun 15, 2023
1 parent cda3fe2 commit 71f626e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/test/04_install.sh
Expand Up @@ -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
Expand Down

0 comments on commit 71f626e

Please sign in to comment.