Files
computer-playbook/scripts/github/cleanup
kevinveenbirkenbachandClaude Opus 4.8 293f70d785 feat(scripts): make GHCR CI image cleanup report its actions
The cleanup step ran silently, so a no-op run was indistinguishable
from a broken one. Add a config banner, per-deletion lines, and a
per-package plus grand-total summary with a kept-reason breakdown, and
an explicit message when nothing matches. Add DRY_RUN support.

Deletion rule: delete a version only when it carries a ci-* tag, has no
semver (v*) or latest tag, and is older than MAX_AGE_DAYS. Released
images and untagged multi-arch child layers are never touched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 02:47:32 +02:00
..
2026-06-27 21:36:30 +02:00

Repository Cleanup 🧹

Shell helpers for scheduled repository-maintenance workflows that prune stale GitHub resources.

Scope 📋

Helpers in this directory are invoked by maintenance workflows under .github/workflows/. They may call the GitHub API through gh, but MUST keep destructive selection criteria inside scripts so workflow files remain orchestration-only. CI image cleanup derives distro-specific package names from INFINITO_DISTROS, whose default comes from default.env through the environment loader.

For the workflow catalog that drives these calls see workflows.md.