Skip to content

Instantly share code, notes, and snippets.

@smeevil
Created July 24, 2013 11:07
Show Gist options
  • Save smeevil/6069687 to your computer and use it in GitHub Desktop.
Save smeevil/6069687 to your computer and use it in GitHub Desktop.
Just add this as last line to your Deploy commands on semaphore app. A simple notification to the deployer that semaphore app's deploy is done. Just replace <API_KEY> with the api key of your flow dock channel. If your first name of the commit is the same as your name in flow dock, you will get a notification beep :)
NAME=`git --no-pager show -s --format='%cn' $REVISION|sed -e 's/ .*//'` && curl -X POST --data "{\"content\": \"Deploy by @$NAME is done #deploy\", \"external_user_name\": \"Semaphore\", \"tags\": [\"deploy\"]}" https://api.flowdock.com/v1/messages/<API_KEY> --header "Content-Type:application/json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment