karlsgate/acr-cli-purge
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Sep 26, 2024
- License
- MIT
Pinned Snippet
uses: karlsgate/acr-cli-purge@e4335bff4c00f0bde665c08f947732819d259ecf # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| registry | The name of the Azure Container Registry (ACR) to clean up | yes | — |
| username | The username to authenticate with the Azure Container Registry | yes | — |
| password | The password to authenticate with the Azure Container Registry | yes | — |
| repo | The name of the ACR repository to clean up | no | all |
| tag_regex | The regex to match tags to delete. Default is all tags | no | .* |
| repo_regex | The regex to match repositories to delete. Default is all repositories. Only used if repo is not specified | no | .* |
| ago | The duration to retain tags before purging. Use Go-style duration format: - 'ns' (nanoseconds) - 'us' or 'µs' (microseconds) - 'ms' (milliseconds) - 's' (seconds) - 'm' (minutes) - 'h' (hours) - 'd' (days) Example: '30m', '2h45m', '1d2h', etc. Default is '30d'. | no | 30d |
| keep | The number of tags to keep even if they meet the criteria. Default is 3 | no | 3 |
| dry_run | If true, the action will only print the tags that would be deleted | no | false |
| delete_untagged | If true, the action will delete untagged manifests (meaning no tags point to them) | no | false |
Outputs
no outputs