fix(deploy): Adding deployment webhook to travis

This commit is contained in:
Chris Troutner
2020-01-19 20:42:53 -08:00
parent 27aaa960be
commit b4e906ca1f
3 changed files with 17 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
# Triggers a webhook to update the staging server at staging.fullstack.cash.
#!/bin/bash
#echo $DEPLOY_SECRET
echo "Deploy to production...."
export DATA="{\"ref\":\"$DEPLOY_SECRET\"}"
#echo $DATA
curl -X POST http://fullstack.cash:9000/hooks/bch-api-mainnet -H "Content-Type: application/json" -d $DATA
echo "...Finished deploying to production."