Skip to content

wantedly/step-pretty-slack-notify

Repository files navigation

Slack Notify Step Docker Repository on Quay.io

Posts wercker build/deploy status to a Slack Channel.

screenshot

REQUIREMENTS

  • webhook_url - Your Slack webhook URL.

Options

  • channel - The Slack channel to override the default channel. (without #).
  • username - The name of your bot. (default Wercker)
  • branches - Specific branches to notify. (regular expression)
  • notify_on - Allows you to specify to notify on passed or failed. (default all allows notify)
  • passed_message/failed_message - Allows you to define additional message on passed/failed. (You can use slack formatting options)

EXAMPLE USAGE

posts build notification

build:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL

posts deploy notification

deploy:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL

override channel and/or username

build:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            channel: dev
            username: cibot

notify on specific branches only

build:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            branches: ^master$

notify on failed build only

build:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            notify_on: "failed"

define additional message on passed build

build:
    after-steps:
        - install-packages:
            packages: ruby
        - wantedly/pretty-slack-notify:
            webhook_url: $SLACK_WEBHOOK_URL
            passed_message: yay :smile:

CHANGELOG

See CHANGELOG

About

Posts wercker build/deploy status to a Slack channel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published