devopshq / devopshq/artifactory-cleanup

Duplicate manifest in aql

Open
#135 2 comments 0 reactions 0 assignees View on GitHub
help wanted
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.