Skip to content

Commit fa65887

Browse files
author
MarcoFalke
committed
ci: Add missing --external to podman image prune
1 parent 0046f3d commit fa65887

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/test/02_run_container.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
3535

3636
# Still prune everything in case the filtered pruning doesn't work, or if labels were not set
3737
# on a previous run. Belt and suspenders approach, should be fine to remove in the future.
38+
# Prune images used by --external containers (e.g. build containers) when
39+
# using podman.
3840
echo "Prune all dangling images"
39-
docker image prune --force
41+
podman image prune --force --external
4042
fi
4143
echo "Prune all dangling $CI_IMAGE_LABEL images"
44+
# When detecting podman-docker, `--external` should be added.
4245
docker image prune --force --filter "label=$CI_IMAGE_LABEL"
4346

4447
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)