Skip to content

[CHORE] Prune stale RC and sha256 tags from GHCR #463

Closed

Description

@gerchowl

Question

@c-vigo Should we prune the stale RC tags (and orphaned sha256-* tags) from ghcr.io/vig-os/devcontainer?

Current State

The GHCR registry currently has 100 tags, broken down as:

Category Count Notes
Release tags 12 0.1, 0.2.0, 0.2.1, 0.3.0, 0.3.1 (+ arch variants)
latest 1
RC tags 65 0.3.0-rc1 through 0.3.0-rc3, 0.3.1-rc1 through 0.3.1-rc19 (+ arch variants)
sha256-* tags 22 Orphaned manifest digests

Both 0.3.0 and 0.3.1 have been released as final versions, so all 65 RC tags are stale. The 22 sha256-* tags appear to be orphaned intermediate manifests.

Context

Issue #172 originally scoped automated RC cleanup as part of the release workflow, but the cleanup step was never implemented — only a manual cleanup note exists in the rollback failure message (line 1527 of release.yml).

Proposal

  1. One-time manual prune of all *-rc* and orphaned sha256-* tags
  2. Automate cleanup as a post-release step (as originally planned in [FEATURE] Add RC publishing and cleanup to devcontainer release workflow #172) so this doesn't accumulate again

Happy to take this on if you agree it should be done.

Activity

  1. c-vigo commented on Mar 27, 2026

    @c-vigo
    Contributor

    @gerchowl agree. I would make it part of the promote-release.yml workflow. The question remains what to do with GitHub tags as well. In the end they are just that, a tag, the underlying SHA will remain valid forever, and the only tag that must always remain is the final one (which is anyway immutable since it is linked to a release). What do you think?

  2. gerchowl commented on Mar 27, 2026

    @gerchowl
    ContributorAuthor
  3. self-assigned this
    on Mar 27, 2026
  4. added a commit that references this issue on Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions