diff options
author | Emile <hanemile@protonmail.com> | 2019-09-24 13:32:56 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-09-24 13:32:56 +0200 |
commit | 00b30940a6d447166856979ee3185f1c801f2fa6 (patch) | |
tree | ae2e9aaf21a5c639a14b89200e467e0865fd2f73 | |
parent | 237e22757ce84ad326b4b23bf01b7e3dfcf7c521 (diff) |
telegram notifications
-rw-r--r-- | .drone.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml index 0508655..7109c0c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,3 +22,36 @@ steps: from_secret: docker_username password: from_secret: docker_password + +- 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}} |