Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takedajs/b29480bcb2f1e6ab1dbfc1193bd39f3f to your computer and use it in GitHub Desktop.
Save takedajs/b29480bcb2f1e6ab1dbfc1193bd39f3f to your computer and use it in GitHub Desktop.
version: 2
jobs:
deploy:
docker:
- image: circleci/php:7.1.8-browsers
steps:
- checkout
- run:
name: heroku deploy
command: |
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master
curl -X POST --data-urlencode "payload={\"username\": \"circleCI\",\"text\": \"masterをデプロイしました。\", \"icon_emoji\": \":ghost:\" }" "${SLACK_WEB_HOOK}"
workflows:
version: 2
deploy:
jobs:
- deploy:
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment