Skip to content

Commit b948539

Browse files
committed
builder-common.bu: Prune untagged rhel-coreos-base and node-staging images
- Explicitly target untagged images with repository names that bypass the default dangling filter. Applied 12h retention policy for these specific images. Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
1 parent fdd798d commit b948539

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

multi-arch-builders/builder-common.bu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ storage:
9999
ExecStart=podman volume prune --force --filter="label!=persistent"
100100
ExecStart=podman image prune --force
101101
ExecStart=podman image prune --all --external --force --filter until=48h
102+
# Added specific cleanup for rhel-coreos-base and node-staging
103+
# untagged images older than 12h:
104+
ExecStart=/usr/bin/bash -c 'podman images \
105+
--filter "reference=registry.ci.openshift.org/coreos/*" \
106+
--filter "until=12h" \
107+
--format "{{.ID}} {{.Tag}}" \
108+
| awk "\$2 == \"<none>\" {print \$1}" \
109+
| xargs -r podman rmi -f'
102110
- path: /home/builder/.config/systemd/user/prune-container-resources.timer
103111
mode: 0644
104112
user:

0 commit comments

Comments
 (0)