Commit 93ca5cf4 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

provide also json files

parent bb1ff74b
Pipeline #7867 passed with stages
in 2 minutes and 19 seconds
......@@ -34,6 +34,7 @@ for REPO in $REPOS; do
else
lua5.3 /usr/share/alpine-secdb/secfixes.lua --verify "$TMPFILE"
install -D "$TMPFILE" /var/www/html/"$RELEASE"/"$REPO".yaml
yaml2json.lua "$TMPFILE" > /var/www/html/"$RELEASE"/"$REPO".json
fi
rm -f "$TMPFILE"
done
#!/usr/bin/lua5.3
yaml = require("lyaml")
json = require("cjson")
local f = io.open(arg[1])
local data = yaml.load(f:read("*all"))
print(json.encode(data))
f:close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment