Skip to content

Configure GHCR cleanup to retain only version tags with 30-day policy#29

Merged
mm-psy merged 2 commits intodev/container-cleanupfrom
copilot/remove-old-tags-dry-run
Feb 11, 2026
Merged

Configure GHCR cleanup to retain only version tags with 30-day policy#29
mm-psy merged 2 commits intodev/container-cleanupfrom
copilot/remove-old-tags-dry-run

Conversation

Copy link

Copilot AI commented Feb 3, 2026

Adjusts container registry cleanup policy to preserve only version-tagged images (v** pattern) while marking other tags for deletion after 30 days.

Changes

  • Retention policy: exclude-tags narrowed from v**, rc-release**, hotfix** to v** only
  • Deletion window: Extended older-than from 1 day to 30 days
  • Dry-run mode: Confirmed enabled (no actual deletions performed)

Impact

Release candidates, hotfix branches, develop snapshots, and PR images older than 30 days will now be eligible for cleanup. Version-tagged releases remain exempt indefinitely.

# Before
exclude-tags: v**, rc-release**, hotfix**
older-than: 1 days

# After
exclude-tags: v**
older-than: 30 days

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…n to 30 days

Co-authored-by: mm-psy <147830298+mm-psy@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove tags older than 30 days except version tags Configure GHCR cleanup to retain only version tags with 30-day policy Feb 3, 2026
Copilot AI requested a review from mm-psy February 3, 2026 13:54
@mm-psy mm-psy marked this pull request as ready for review February 11, 2026 10:02
@mm-psy mm-psy merged commit f98bb2b into dev/container-cleanup Feb 11, 2026
1 check passed
@mm-psy mm-psy deleted the copilot/remove-old-tags-dry-run branch February 11, 2026 10:03
mm-psy added a commit that referenced this pull request Feb 11, 2026
* Configure GHCR cleanup to retain only version tags with 30-day policy (#29)

* Initial plan

* Update cleanup workflow to keep only version tags and extend retention to 30 days

Co-authored-by: mm-psy <147830298+mm-psy@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mm-psy <147830298+mm-psy@users.noreply.github.com>

* Update GHCR cleanup action to delete packages older than 1 day

* Update GHCR cleanup action to retain packages older than 30 days

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
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.

2 participants

Comments