Skip to content

ci: expire ci-emulated-cache images after 7 days - #75

Merged
zeriyoshi merged 1 commit into
mainfrom
ci/ghcr-cache-cleanup
Jul 27, 2026
Merged

ci: expire ci-emulated-cache images after 7 days#75
zeriyoshi merged 1 commit into
mainfrom
ci/ghcr-cache-cleanup

Conversation

@zeriyoshi

Copy link
Copy Markdown
Contributor

Summary

  • Add a daily scheduled workflow that deletes ghcr.io/colopl/pskel/ci-emulated-cache image versions older than 7 days, so stale emulated-cache images no longer accumulate indefinitely.
  • workflow_dispatch accepts an older-than-days input; passing 0 deletes the whole package (used once after merge to wipe all existing cache images). The package is recreated automatically on the next emulated CI push.
  • Runs with the repository GITHUB_TOKEN (packages: write) — no extra secrets needed since the package is published by this repository's workflows.

Note: with a 7-day TTL the emulated cache images are rebuilt roughly weekly even when the Dockerfile hash is unchanged, which also keeps their base images fresh.

🤖 Generated with Claude Code

Add a daily cleanup workflow that deletes ghcr.io ci-emulated-cache
image versions older than 7 days so stale cache images no longer
accumulate. workflow_dispatch accepts older-than-days; passing 0
deletes the whole package for a full reset.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zeriyoshi
zeriyoshi merged commit cc72b8e into main Jul 27, 2026
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