aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-23 12:09:31 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-23 14:10:12 +0200
commitfa6588737714cf26571657fc216552a4291376da (patch)
tree7d10dd7f0355a199557f96d1d9fadc8c5648c2c0
parent0046f3dc2709e9887336050c3461e26e3c185965 (diff)
downloadbitcoin-fa6588737714cf26571657fc216552a4291376da.tar.xz
ci: Add missing --external to podman image prune
-rwxr-xr-xci/test/02_run_container.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/ci/test/02_run_container.sh b/ci/test/02_run_container.sh
index c8c54267e7..edf8f2c30f 100755
--- a/ci/test/02_run_container.sh
+++ b/ci/test/02_run_container.sh
@@ -35,10 +35,13 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
# Still prune everything in case the filtered pruning doesn't work, or if labels were not set
# on a previous run. Belt and suspenders approach, should be fine to remove in the future.
+ # Prune images used by --external containers (e.g. build containers) when
+ # using podman.
echo "Prune all dangling images"
- docker image prune --force
+ podman image prune --force --external
fi
echo "Prune all dangling $CI_IMAGE_LABEL images"
+ # When detecting podman-docker, `--external` should be added.
docker image prune --force --filter "label=$CI_IMAGE_LABEL"
# shellcheck disable=SC2086