Vault version env
Renovate / renovate (push) Successful in 2m48s

This commit is contained in:
2025-10-06 07:58:44 -04:00
parent 8d967a143b
commit ef33a4a9ef
+7 -23
View File
@@ -69,32 +69,16 @@ jobs:
echo "Processing combined Compose files:" echo "Processing combined Compose files:"
echo "$COMPOSE_FILES" echo "$COMPOSE_FILES"
echo "[]" > temp_services.json # Process all compose files together so anchors and merges resolve across files
FOUND=0 yq -o=json eval-all 'explode(.) | .services | to_entries | map({"service": .key, "image": .value.image})' $COMPOSE_FILES \
| jq 'unique_by(.service)' > services.json
while IFS= read -r f; do if [ ! -s services.json ]; then
[ -z "$f" ] && continue echo "No services extracted. Exiting."
echo "Processing $f" exit 1
# Resolve merge anchors for this file
yq -o=json eval-all 'explode(.) | .services | to_entries | map({"service": .key, "image": .value.image})' "$f" > tmp.json
# Merge into temp_services.json
jq -s 'add' temp_services.json tmp.json > temp_merged.json
mv temp_merged.json temp_services.json
FOUND=1
done <<< "$COMPOSE_FILES"
if [ "$FOUND" -eq 0 ]; then
echo "No docker-compose files processed. Exiting."
exit 0
fi fi
# Deduplicate services echo "✅ Generated services.json with all services and images."
jq 'unique_by(.service)' temp_services.json > services.json
echo "Generated services.json with all services and images."
- name: Generate Markdown Table - name: Generate Markdown Table
uses: gazab/create-markdown-table@6686233d7008e8d8b9d4bbdbfd1fb1ae510019f0 # v1.0.7 uses: gazab/create-markdown-table@6686233d7008e8d8b9d4bbdbfd1fb1ae510019f0 # v1.0.7