Skip to content

Send a message to a Slack channel after build or deploy with Wercker

License

Notifications You must be signed in to change notification settings

dimoreira/step-slack-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

step-slack-notify

wercker status

Send a message to a Slack channel after build or deploy with Wercker.

Options

required

This variables can be set at the step on your wercker.yml file or at the deploy targer variables. Just declare them like: WERCKER_SLACK_NOTIFY_SUBDOMAIN, WERCKER_SLACK_NOTIFY_TOKEN and WERCKER_SLACK_NOTIFY_CHANNEL

  • subdomain - Your Slack team subdomain.
  • token - Your slack integration token.
  • channel - The Slack channel you want to push messages for.

optional

  • passed-message - Use this option to override the default passed message
  • failed-message - Use this option to override the default failed message

Example with step variables

build:
	after-steps:
		- slack-notify:
			subdomain: "testapp"
			token: "YOUR SLACK TOKEN"
			channel: "general"

Example with wercker deploy target variables

build:
	after-steps:
		- slack-notify:
			subdomain: $WERCKER_SLACK_NOTIFY_SUBDOMAIN
			token: $WERCKER_SLACK_NOTIFY_TOKEN
			channel: $WERCKER_SLACK_NOTIFY_CHANNEL

About

Send a message to a Slack channel after build or deploy with Wercker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published