mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-29 23:10:08 +00:00
add fail2ban as example container for testing purposes
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
8
.github/workflows/json-validator.yml
vendored
8
.github/workflows/json-validator.yml
vendored
@@ -23,3 +23,11 @@ jobs:
|
||||
sudo apt-get install python3-pip -y --no-install-recommends
|
||||
sudo pip3 install json-spec
|
||||
json validate --schema-file=php/containers-schema.json --document-file=php/containers.json
|
||||
JSON_FILES="$(find ./community-containers -name '*.json')"
|
||||
mapfile -t JSON_FILES <<< "$JSON_FILES"
|
||||
for file in "${JSON_FILES[@]}"; do
|
||||
json validate --schema-file=php/containers-schema.json --document-file="$file" | tee -a ./json-validator.log
|
||||
done
|
||||
if grep "Exception: document does not validate with schema." ./json-validator.log; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user