yq quotes.
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
|||||||
[ -z "$f" ] && continue
|
[ -z "$f" ] && continue
|
||||||
echo "Processing $f"
|
echo "Processing $f"
|
||||||
# Extract JSON array for this compose file
|
# Extract JSON array for this compose file
|
||||||
yq -o=json '.services | to_entries | map({service: .key, image: .value.image})' "$f" > tmp.json
|
yq -o=json '.services | to_entries | map({"service": .key, "image": .value.image})' "$f" > tmp.json
|
||||||
# Merge all arrays into one JSON array-of-arrays
|
# Merge all arrays into one JSON array-of-arrays
|
||||||
jq -s 'add' temp_services.json tmp.json > temp_merged.json
|
jq -s 'add' temp_services.json tmp.json > temp_merged.json
|
||||||
mv temp_merged.json temp_services.json
|
mv temp_merged.json temp_services.json
|
||||||
|
|||||||
Reference in New Issue
Block a user