yq quotes.

This commit is contained in:
2025-10-06 07:00:04 -04:00
parent 76e2847b6c
commit 16e4e1764a
+1 -1
View File
@@ -47,7 +47,7 @@ jobs:
[ -z "$f" ] && continue
echo "Processing $f"
# 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
jq -s 'add' temp_services.json tmp.json > temp_merged.json
mv temp_merged.json temp_services.json