Updating deploy script for Jenkins

This commit is contained in:
Chris Troutner
2020-11-07 20:40:06 -08:00
parent 00e1840ca2
commit c4085fb929
+6 -1
View File
@@ -3,7 +3,10 @@
#!/bin/bash
#echo $DEPLOY_SECRET
echo "Deploy to production...."
if [ $GIT_BRANCH == master ]
then
echo "Deploying to production...."
export DATA="{\"ref\":\"$DEPLOY_SECRET\"}"
@@ -15,3 +18,5 @@ curl -X POST http://$FREE_SERVER:9000/hooks/bch-api-testnet -H "Content-Type: ap
curl -X POST http://$FREE_SERVER:9000/hooks/bch-api-mainnet -H "Content-Type: application/json" -d $DATA
echo "...Finished deploying to production."
fi