Commit 6a92ab8e authored by nanahira's avatar nanahira

add ci

parent 09364a4a
Pipeline #5726 passed with stages
in 53 seconds
stages:
- validate
- deploy
variables:
GIT_DEPTH: "1"
validate:
stage: validate
dependencies: []
tags:
- linux
script: ./validate.sh
upload_to_minio:
stage: deploy
dependencies: []
tags:
- linux
script:
- aws s3 --endpoint=https://minio.momobako.com:9000 sync --delete data/ s3://public/ygopro-tips
only:
- master
#!/bin/bash
returnCode=0
for file in data/*.json; do
echo "Validating $file"
cat "$file" | jq > /dev/null
fileReturnCode=$?
if [[ "$fileReturnCode" != 0 ]]; then
echo "File $file is bad."
returnCode="$fileReturnCode"
fi
done
exit "$returnCode"
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