appveyor: Add auto deploy to production
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-03-30 09:08:03 +00:00
parent fa38c2928b
commit 5b6b1b0a58

View file

@ -60,6 +60,9 @@ on_success:
-H "Authorization: token $deploytoken" \ -H "Authorization: token $deploytoken" \
-F "attachment=@${CURR_VER}_build-sc.7z" \ -F "attachment=@${CURR_VER}_build-sc.7z" \
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets
echo "Deplying to production"
curl -X POST http://192.168.93.51:8881/update/helloworld
fi fi
# on build failure # on build failure