fix: clean up main branch container images#1339
Conversation
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughGitHub Actions workflow now named "Cleanup Container Images"; reformats ChangesContainer Image Cleanup Workflow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/cleanup-untagged-images.yml:
- Line 117: Replace the mutable tag usage "dataaxiom/ghcr-cleanup-action@v1.2.1"
with an immutable 40-character commit SHA for the same action (e.g.,
"dataaxiom/ghcr-cleanup-action@<full-commit-sha>"); find the correct commit SHA
in the dataaxiom/ghcr-cleanup-action repository (the commit corresponding to
v1.2.1 or the desired release) and update the uses line so the workflow
references that exact SHA instead of the version tag.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 66fc5d07-a25f-447a-9701-ec209549213d
📒 Files selected for processing (1)
.github/workflows/cleanup-untagged-images.yml
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
please take a look sir @KaivalyaMDabhadkar |
|
Thanks for the PR @valdo766hi ! This PR changes scheduled runs from dry-run to real deletion, because schedule events now resolve This step is still using Can you please:
|
Signed-off-by: valdo766hi <rivaldosilalahi13@gmail.com>
|
Thanks for the review @KaivalyaMDabhadkar. I updated the existing untagged cleanup to use For the dry-run output, running this from my fork would not be useful because the job is guarded with Could a maintainer/vetter trigger or approve a manual |
|
@valdo766hi this PR has been inactive for 14 days. Do you need help finishing it, or should we close it for now? Feel free to reopen anytime. |
|
@KaivalyaMDabhadkar , can you please help here? |
Closes #171.
Summary
This completes the cleanup work started in #598.
The existing workflow only removes untagged GHCR images. Images published from
mainare tagged asmain-<shortsha>, so they were not covered by the untagged cleanup policy.Changes
main-*tagged imagesmain-*Validation
Summary by CodeRabbit