mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
ci: Add missing --external to podman image prune
This commit is contained in:
parent
0046f3dc27
commit
fa65887377
1 changed files with 4 additions and 1 deletions
|
@ -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
|
# 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.
|
# 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"
|
echo "Prune all dangling images"
|
||||||
docker image prune --force
|
podman image prune --force --external
|
||||||
fi
|
fi
|
||||||
echo "Prune all dangling $CI_IMAGE_LABEL images"
|
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"
|
docker image prune --force --filter "label=$CI_IMAGE_LABEL"
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
|
Loading…
Add table
Reference in a new issue