Created
July 24, 2013 11:07
-
-
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 :)
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
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