lostlink/Docker Hub Cleanup
Clean up old Docker tags from Docker Hub repositories to manage storage and keep repositories organized
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| username | Docker Hub username | yes | — |
| password | Docker Hub password or Personal Access Token | yes | — |
| organization | Docker Hub organization/namespace (defaults to username if not specified) | no | "" |
| repositories | Comma-separated list of repository names to clean up | yes | — |
| pr-retention-days | Number of days to retain PR tags (pr-*) | no | 30 |
| sha-retention-days | Number of days to retain branch SHA tags (main-*, develop-*, etc.) | no | 14 |
| dry-run | If true, only show what would be deleted without actually deleting | no | true |
| verbose | Enable verbose output for debugging | no | false |
| protected-tags | Comma-separated list of additional tags to protect from deletion | no | "" |
| custom-patterns | JSON string of custom tag patterns and their retention days | no | {} |
Outputs
| name | description |
|---|---|
| deleted-count | Total number of tags deleted |
| identified-count | Total number of tags identified for deletion |
| protected-count | Number of tags protected from deletion |
| summary | JSON summary of the cleanup operation |