Skip to content

feat(devcontainer): automate PR devcontainer cleanup on PR merge in GHCR #39

Closed

Description

@dan-petty

Problem & Context

Ephemeral PR devcontainer image tags (e.g. pr-38, pr-<number>) published to GitHub Container Registry (ghcr.io/dan-petty/devops-cli/devcontainer) persist indefinitely after PR closure or merge, accumulating storage and cluttering the package registry.

Proposed Solution

  1. Add automated GitHub Actions workflow (.github/workflows/cleanup-devcontainer.yml) triggered on pull_request: types: [closed].
  2. Support manual on-demand pruning via workflow_dispatch with explicit pr_number or tag input and dry_run option.
  3. Use dataaxiom/ghcr-cleanup-action pinned by SHA with strict preservation of permanent release tags (latest,v*,main).
  4. Reclaim multi-arch storage via delete-untagged: true and delete-ghost-images: true.

Milestone & Governance

  • Milestone: v0.2.12
  • Project Tracking: Phase 47.4 (WIP) in docs/agent/task.md

Activity

  1. added this to the v0.2.12 milestone on Sep 6, 2026
  2. added
    type/feature
    scope/github
    priority/p2-medium
    on Sep 6, 2026
  3. added a commit that references this issue on Sep 6, 2026
    d156680
  4. dan-petty commented on Sep 6, 2026

    @dan-petty
    OwnerAuthor

    Resolved and closed by PR #44 merged into release/v0.2.12 (commit d156680). Pruned 132 stale/orphaned images in GHCR.

  5. added a commit that references this issue on Sep 7, 2026
    28c8903
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/githubtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions