chore(kb/jq): hint how to check a value in a yaml file

This commit is contained in:
Michele Cereda
2024-04-04 01:09:04 +02:00
parent 888a29c3cc
commit 30246afdd9

View File

@@ -100,6 +100,9 @@ helm template chartName \
| select(.)
| select(.|test(".*:.*")|not), select(.|test(".*:$")), select(.|test(".*:latest"))' \
-
# Check that the 'backend.url key' in a 'Pulumi.yaml' file is not 'file://' and fail otherwise.
yq -e '(.backend.url|test("^file://")?)|not' 'Pulumi.yaml'
```
## Further readings