Last active
February 8, 2016 19:53
-
-
Save nodesocket/a91942bcdd50a5eebde4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPBEAT_APP_IDS=('e56ec269d6' '29bb1bb075' '5e6e36c7ef' '374e78ad7a') | |
for i in "${OPBEAT_APP_IDS[@]}" | |
do | |
curl https://opbeat.com/api/v1/organizations/OUR-ORG-ID-HERE/apps/"$i"/releases/ \ | |
-H "Authorization: Bearer OUR-SECRET-TOKEN-HERE" \ | |
-d rev=`git log -n 1 --pretty=format:%H` \ | |
-d branch=`git rev-parse --abbrev-ref HEAD` \ | |
-d machine=`hostname` | |
-d status=machine-completed | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment