Skip to content

ci: add weekly container package retention - #2415

Merged
DeliciousBuding merged 1 commit into
masterfrom
ci/prune-packages
Nov 22, 2026
Merged

DeliciousBuding merged 1 commit into
masterfrom
ci/prune-packages

Conversation

@DeliciousBuding

@DeliciousBuding DeliciousBuding commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a weekly job that deletes untagged container versions older than 30 days, keeping all tagged versions, the newest 200 versions, and any version that shares a creation minute with a tagged version (GHCR multi-arch child manifests). Manual runs default to dry-run.

Summary by CodeRabbit

  • 运维
    • 新增容器包版本清理流程,可按计划运行或手动触发。
    • 清理前会保留带标签的版本、最新的未带标签版本,以及符合时间保护条件的版本。
    • 手动运行默认仅列出待清理版本;计划任务会执行删除,并记录每项结果。

@DeliciousBuding
DeliciousBuding merged commit d5cfbb6 into master Nov 22, 2026
32 of 33 checks passed
@DeliciousBuding
DeliciousBuding deleted the ci/prune-packages branch November 22, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant