mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
ci: Prune dangling images on RESTART_CI_DOCKER_BEFORE_RUN
This commit is contained in:
parent
a2e111b8a3
commit
fa9c65a74c
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue