Skip to content

Commit

Permalink
Add one example using jq to filter candidate tags to be cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
David Constenla committed Jun 16, 2022
1 parent 3de3d93 commit c246889
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ jq -s '.' dregsy-*-dry-run-report.json

to then perform validation / filtering on a array level.

Example, get all the tags available on target that migth require to be cleaned:

```bash
jq -sc '.[]|{"candidateToBeCleaned":.["tags available on target that are not synced"], "repo": .["target reference"]}' dregsy-skopeo-*-dry-run-report.json
# if you prefer a single output as array you can use
jq -s '[.[]|{"candidateToBeCleaned":.["tags available on target that are not synced"], "repo": .["target reference"]}]' dregsy-skopeo-*-dry-run-report.json
```

### Logging

Logging behavior can be changed with these environment variables:
Expand Down

0 comments on commit c246889

Please sign in to comment.