Skip to content

Instantly share code, notes, and snippets.

@nodesocket
Last active February 8, 2016 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodesocket/a91942bcdd50a5eebde4 to your computer and use it in GitHub Desktop.
Save nodesocket/a91942bcdd50a5eebde4 to your computer and use it in GitHub Desktop.
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