Skip to content

Instantly share code, notes, and snippets.

@djGrill
Created March 9, 2016 10:58
Show Gist options
  • Save djGrill/6d4bf8123da9de95c72d to your computer and use it in GitHub Desktop.
Save djGrill/6d4bf8123da9de95c72d to your computer and use it in GitHub Desktop.
Record deployment in New Relic
git_hash=$(git rev-parse --short HEAD)
curl -X POST -H "x-api-key:asdf1234" --data "deployment[app_name]=&deployment[revision]=${git_hash}" https://api.newrelic.com/deployments.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment