Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions multi-arch-builders/builder-common.bu
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ storage:
ExecStart=podman volume prune --force --filter="label!=persistent"
ExecStart=podman image prune --force
ExecStart=podman image prune --all --external --force --filter until=48h
# Added specific cleanup for rhel-coreos-base and node-staging
# untagged images older than 12h:
ExecStart=/usr/bin/bash -c "podman images \
--filter 'reference=registry.ci.openshift.org/coreos/*' \
--filter 'until=12h' \
--format '{{.ID}} {{.Tag}}' \
| awk '$2 == \"<none>\" {print $1}' \
| xargs -r podman rmi -f"
- path: /home/builder/.config/systemd/user/prune-container-resources.timer
mode: 0644
user:
Expand Down