Update drone.yml to send build result to telegram bot.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user