Last active
September 15, 2015 21:09
-
-
Save mugifly/2282f172037166a92373 to your computer and use it in GitHub Desktop.
Wercker with Slack and Bitbucket (Auto deployment) for Node project - Tested in Sep 2015
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
box: node | |
build: | |
steps: | |
- npm-install | |
- npm-test | |
- script: | |
name: echo nodejs information | |
code: | | |
echo "node version $(node -v) running" | |
echo "npm version $(npm -v) running" | |
after-steps: | |
# Notify to Slack - https://github.com/sherzberg/wercker-step-slack-notify | |
# << You must set environment variables in Wrecker >> | |
# SLACK_SUB_DOMAIN = Your slack team's sub domain | |
# e.g. https://XXX.slack.com/ -> XXX is sub domain | |
# SLACK_TOKEN = A last part of Webhook URL of Slack's Incoming WebHooks. | |
# e.g. https://hooks.slack.com/services/XXXX/YYYY/ZZZZ -> ZZZZ is token | |
# SLACK_CHANNEL = Channel name of Slack - e.g. "#foo" (double quote is required) | |
- sherzberg/slack-notify: | |
subdomain: $SLACK_SUB_DOMAIN | |
token: $SLACK_TOKEN | |
channel: $SLACK_CHANNEL | |
deploy: | |
steps: | |
# Deploy to Heroku - https://github.com/wercker/step-heroku-deploy | |
# << You must set environment variables in Wrecker >> | |
# HEROKU_KEY = API Key of Heroku - Get it from https://dashboard.heroku.com/account | |
# HEROKU_USER = Anything is ok - e.g. "Wercker" | |
# HEROKU_APP_NAME = App name on Heroku - If never created, you need make new app | |
- heroku-deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment