diff options
author | Emile <hanemile@protonmail.com> | 2019-11-04 17:35:57 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-04 17:36:37 +0100 |
commit | fc15fd8a4790a4060497aaed536751448474b2b4 (patch) | |
tree | 659b2d383c186c9cf845553e6a0a42f41ba819de | |
parent | 31753a3ab7e469366719a3cecd650683c18f847d (diff) |
copied a working config, this should work
-rw-r--r-- | .drone.yml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/.drone.yml b/.drone.yml index 9af500f..526e9e1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,36 +18,35 @@ steps: password: from_secret: docker_password -- name: telegramnotification - image: appleboy/drone-telegram - settings: - token: telegram_token - to: telegram_to +- 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}} - |