diff --git a/appveyor.yml b/appveyor.yml index b74c049..1188ae2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,6 +42,8 @@ build_script: cd $f CURR_VER="$(cat package.json | jq -r .name)_v$(cat package.json | jq -r .version)" CURR_NAME="$(cat package.json | jq -r .name) v$(cat package.json | jq -r .version)" + MAN_PORT=$(cat package.json | jq -r .port) + MAN_NAME=$(cat package.json | jq -r .name) echo "Checking https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases for name ${CURR_NAME}" curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"${CURR_NAME}\"" > /dev/null @@ -99,8 +101,6 @@ build_script: fi; echo "Deplying to production" - MAN_PORT=$(cat package.json | jq -r .port) - MAN_NAME=$(cat package.json | jq -r .name) echo "curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME" curl -X POST http://192.168.93.50:$MAN_PORT/update/$MAN_NAME fi