diff options
author | Emile <hanemile@protonmail.com> | 2019-09-23 15:21:59 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-09-23 15:21:59 +0200 |
commit | e79a82e1e35c7b838a8ef1dff62fdf15c75c7df0 (patch) | |
tree | 9f434b98c17ba6f9ae057e2fd2a3d7bfa2d6da2c | |
parent | 6c63a5a34ee2379e3dd0ed740eea396e14bb656e (diff) |
added telegram notifications to the ci
@drone_nbg1_emile_space_bot
-rw-r--r-- | .drone.yml | 33 |
1 files changed, 33 insertions, 0 deletions
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}} |