devopshq / devopshq/artifactory-cleanup
Duplicate manifest in aql
- Dominant language
- Python
- Stars
- 160
- Forks
- 87
- PR merge metrics
- No merged PRs in 30d
Description
If there are two docker rules, there would be a duplicate manifest in aql.
```txt
********************************************************************************
Result AQL Query:
items.find({"$and": [{"repo": {"$eq": "example-docker-preprod-local"}}, {"$or": [{"path": {"$match": "foo/*"}}]}, {"name": {"$match": "manifest.json"}}, {"modified": {"$lt": "2024-01-11"}}, {"name": {"$match": "manifest.json"}}]}).include("*", "property", "stat")
********************************************************************************
```
```yaml
- name: Delete example-docker-preprod-local/foo/* older than 180 days
rules:
- rule: Repo
name: example-docker-preprod-local
- rule: IncludeDockerImages
masks: foo:*
- rule: DeleteDockerImagesOlderThan
days: 180
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.