From 5e14eab64312b2ac2ae242bd0d321a4890137e3d Mon Sep 17 00:00:00 2001 From: Vee Date: Wed, 10 Feb 2021 16:26:31 +0700 Subject: [PATCH] Update drone ci for slack notify --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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