diff --git a/.drone.yml b/.drone.yml index f9b168c..979af87 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,6 +64,25 @@ steps: - master - "*-stable" + - name: Slack Notify + image: plugins/slack + settings: + webhook: + from_secret: slack_webhook + channel: + from_secret: slack_webhook_channel + template: > + *{{uppercasefirst repo.name}}* + {{#success build.status}} + [SUCCESS] Branch {{ build.branch }} by {{ build.author }}. Good job. + {{else}} + [FAILURE] Branch {{ build.branch }} by {{ build.author }}. Fix me please. + {{/success}} + when: + branch: + - master + - "*-stable" + trigger: event: - push