From e79a82e1e35c7b838a8ef1dff62fdf15c75c7df0 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 23 Sep 2019 15:21:59 +0200 Subject: added telegram notifications to the ci @drone_nbg1_emile_space_bot --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.drone.yml b/.drone.yml index 20a4419..a6ec275 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,3 +21,36 @@ steps: commands: - go test -coverprofile=cover.out - go tool cover -func=cover.out + +- name: telegram-notification + image: appleboy/drone-telegram + settings: + token: + from_secret: telegram_token + to: + from_secret: telegram_to + when: + status: [ success, failure ] + format: markdown + message: > + {{#success build.status}} + ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. + + 📝 Commit by {{commit.author}} on `{{commit.branch}}`: + + ``` + {{commit.message}} + ``` + + 🌐 {{ build.link }} + {{else}} + ❌ Build #{{build.number}} of `{{repo.name}}` failed. + + 📝 Commit by {{commit.author}} on `{{commit.branch}}`: + + ``` + {{commit.message}} + ``` + + 🌐 {{ build.link }} + {{/success}} -- cgit 1.4.1