feat(forgejo): add package prune script with retention depth 3
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

List and optionally delete package versions beyond the newest three,
protecting production Helm image tags. Adds Make targets and unit tests
for ACTIVITY-WP-0020.
This commit is contained in:
tegwick 2026-07-12 11:35:04 +02:00
parent 2806f2cdda
commit 715631dedd
5 changed files with 564 additions and 1 deletions

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# tools/cmd/forgejo-package-prune — retention prune for Forgejo packages (ACTIVITY-WP-0020)
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
exec python3 "${ROOT}/scripts/forgejo_package_prune.py" --json "$@"