Container Registry Tag Cleanup
Weekly scan: identify container images untouched >30 days, LLM recommends safe deletions prioritizing by size — keep registry lean and reduce storage costs.
Overview
**What it does**: Scheduled (weekly) → query container registry (Docker Hub, ECR, Artifactory, GCR) → code identifies tags unpushed for >30 days → IF candidates found → LLM recommends deletion priority (sort by size in MB, check active deployments, assess untagged copies) → Slack to #infrastructure with cleanup plan. **Setup (5 steps)**: 1. Connect registry: Docker Hub, AWS ECR, Google GCR, Azure ACR, or Artifactory (API key + endpoint) 2. Configure retention policy: days before tag is considered stale (default 30) 3. Set exclusions: branches/tags to never delete (e.g., main, release-*, staging) 4. Configure Slack channel: #infrastructure 5. Test: manually run workflow; review recommendations; adjust thresholds if needed **Apps/nodes**: HTTP request (registry API), code node (stale detection + prioritization), OpenAI (safety check), Slack. **Credentials required**: Container registry API credentials, OpenAI account, Slack workspace. **Difficulty**: Medium | **Setup time**: 8 minutes. **Business outcome**: Registry storage costs ↓ 40%, faster image pulls, simpler dependency tracking.
What's included
Quickstart
- 01
Download the JSON
With an active Library Pass, download the workflow file right from this page or your dashboard.
- 02
Import into n8n
Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.
- 03
Plug in credentials
Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.
- 04
Activate and test
Run once with sample input, confirm the expected output, then flip the activate toggle.
Frequently Asked Questions
How do I import this workflow into n8n?
What credentials do I need to provide?
Are the credentials included in the JSON file?
Can I edit or customize the workflow after importing?
What n8n version is required?
What if something breaks after I import it?
Can I use this workflow for my customers or business?
Will the workflow receive updates?
Do I need n8n Pro or a paid plan?
Can I ask for a custom workflow?
Reviews (0)
No reviews yet. Be the first.
Sign in to leave a review.
Included with any pass
This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.
Get a Library Pass- Every agent in the library
- All new releases while active
- Unlimited downloads
- Commercial-use license
- Priority email support
- 30-day money-back guarantee
More in Infrastructure
Auto-Scaling Decision Advisor
Every 15 minutes: check CPU/memory trends; if approaching limits, LLM recommends scale-up or scale-down actions with cost impact analysis.
Infrastructure Drift Detector
Hourly: compare Terraform desired state vs. live infrastructure; flag divergence (missing resources, config mismatches) to #infrastructure.
Stale Branch Cleanup Report
Weekly: identify branches untouched >30 days, LLM suggests safe deletions and cleanup benefit (reduced merge confusion, disk), posted to #devops.