about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-04 17:28:15 +0100
committerEmile <hanemile@protonmail.com>2019-11-04 17:28:15 +0100
commitcb43166b9d42fc16a9789dfabbda75158af0b85c (patch)
tree04f926784719af94eb327653dcb5e191d52da281
parent4fa3ef61b2db7db6613632b6fe0265135a554cc5 (diff)
Telegram notifications
-rw-r--r--.drone.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index d3ea6f7..0e4ee4d 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -17,3 +17,36 @@ steps:
         from_secret: docker_username
       password:
         from_secret: docker_password
+- telegram-notification:
+    image: appleboy/drone-telegram
+    secrets: [ telegram_token, 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}}
+