Update drone.yml to send build result to telegram bot.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
NADAL Jean-Baptiste
2020-01-07 13:20:52 +01:00
parent f13295c1bd
commit 35f5319fa9
2 changed files with 16 additions and 0 deletions

View File

@@ -35,5 +35,19 @@ steps:
- cd domo-iot/build - cd domo-iot/build
- make gcovr - make gcovr
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
to:
from_secret: telegram_id
message: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
image_pull_secrets: image_pull_secrets:
- dockerconfigjson - dockerconfigjson

View File

@@ -30,3 +30,5 @@ https://kore.io/
http://facil.io/ http://facil.io/
https://dev.to/fuksito/private-ci-using-private-docker-registry-with-drone-io-almost-free-15ek https://dev.to/fuksito/private-ci-using-private-docker-registry-with-drone-io-almost-free-15ek
https://medium.com/@ManHay_Hong/how-to-create-a-telegram-bot-and-send-messages-with-python-4cf314d9fa3e