Created
October 9, 2014 14:35
-
-
Save vistik/d088e56e16866f056456 to your computer and use it in GitHub Desktop.
Laravel forge post to slack channel on deploy
This file contains 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
SHA=$(git rev-parse --verify HEAD) | |
SHA="==== NEW DEPLOY ==== \n\n https://github.com/<USERNAME>/<REPO>/commit/$SHA deployed to http://<site.project.com> \n" | |
curl -X POST --data-urlencode 'payload={"channel": "#devops", "username": "Laravel Forge", "text": "'"$SHA"'", "icon_emoji": ":shipit:"}' https://<USERNAME>.slack.com/services/hooks/incoming-webhook?token=<TOKEN> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment