karlsgate/acr-cli-purge

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Sep 26, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: karlsgate/acr-cli-purge@e4335bff4c00f0bde665c08f947732819d259ecf # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
registryThe name of the Azure Container Registry (ACR) to clean upyes
usernameThe username to authenticate with the Azure Container Registryyes
passwordThe password to authenticate with the Azure Container Registryyes
repoThe name of the ACR repository to clean upnoall
tag_regexThe regex to match tags to delete. Default is all tagsno.*
repo_regexThe regex to match repositories to delete. Default is all repositories. Only used if repo is not specifiedno.*
agoThe 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'. no30d
keepThe number of tags to keep even if they meet the criteria. Default is 3no3
dry_runIf true, the action will only print the tags that would be deletednofalse
delete_untaggedIf true, the action will delete untagged manifests (meaning no tags point to them)nofalse

no outputs