diff options
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | pages.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c5ebad..ea36c80 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,7 +61,7 @@ pages: - stable - release before_script: - - apk add openssh-client libxml2-utils + - apk add openssh-client libxml2-utils jsonlint - eval $(ssh-agent -s) - mkdir -p ~/.ssh - echo "${SSH_PRIVATE_KEY_BASE64}" | base64 -d | tr -d '\r' > ~/.ssh/id_rsa @@ -164,6 +164,7 @@ deploy(){ # i guess i need to get old artifacts to keep pages in case it was a test build if get_mode; then find $deploy_dir -type f -not -name '*.xsd' -delete + #else # deploying versions #scp -o StrictHostKeyChecking=no $deploy_dir/.zip $DEPLOY_HOST:$DEPLOY_LOCATION$mode || echo "WARN: cant deploy to Server!" @@ -174,6 +175,7 @@ deploy(){ linters(){ xmllint --schema $deploy_dir/$mirror_file.xsd $deploy_dir/$mirror_file.xml --noout || exit 1 + jsonlint-php $deploy_dir/$mirror_file.json || exit 1 } get_version_file |