Created
June 25, 2014 03:18
-
-
Save shu0115/5a3c7ff8cf130091f49f to your computer and use it in GitHub Desktop.
CircleCI on Heroku - 簡易自動デプロイ circle.ymlサンプル ref: http://qiita.com/shu_0115/items/496f3c46b09bbbba4d02
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
deployment: | |
staging: | |
branch: staging | |
commands: | |
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【START】ステージング環境へのデプロイを開始しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx' | |
- git push git@heroku.com:MY-APP-NAME.git $CIRCLE_SHA1:refs/heads/master | |
- heroku run rake db:migrate --app MY-APP-NAME | |
- curl https://slack.com/api/chat.postMessage -X POST -d 'channel=#heroku' -d 'text=【END】ステージング環境へのデプロイが完了しました。' -d 'username=circle_ci' -d 'token=xoxp-xxxxxxxxxx' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment