dlidstrom/DockerHub Cleanup Action
A GitHub Action that cleans up Docker Hub tags using a Python script.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| namespace | Docker Hub namespace/organization | yes | — |
| token | Docker Hub Personal Access Token | yes | — |
| dry_run | Run in dry-run mode (set to true to simulate deletion) | no | false |
| backup_file | Backup file path | no | dockerhub_backup.json |
| retention_days | Days to retain tags | no | 30 |
| preserve_last | Global number of newest tags to preserve if no preservation rules provided | no | 10 |
| skip_repos | space-separated list of repository name prefixes to skip | no | logspout |
| preserve | space-separated list of preservation rules in the format prefix:number (e.g., prod:10 staging:5) | no | "" |
| input_json | Path to a JSON file with repository/tag data (if not pulling from the API) | no | "" |
| repos | space-separated list of specific repositories to process | no | "" |
| report_file | Report file path | no | cleanup_report.csv |
Outputs
no outputs