scotgovcbad/Azure Container Registry Cleanup
An action which will clean-up the given Azure Container Registry repository. It will find the date of the n-th most recent container image whose tag contains a given string and purge all container images created before that date.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| azure-credentials | Credentials used to log in to Azure | yes | — |
| number-to-keep | The number of images matching your tag input which you would like to keep | yes | 3 |
| tag | The tag to be searched for. | yes | — |
| container-registry | The name of your container registry, the bit that goes in the square brackets of [container-registry].azurecr.io | yes | — |
| repo | The repository within the container registry | yes | — |
| strictness | Strict cleanup will keep only the number of images which match your tag input. Lenient cleanup will keep any images younger than the n-th most recent container image which matches your tag input | yes | — |
Outputs
no outputs