aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2020-04-11 17:07:05 +0000
committerezkrg <ezkrg@ezkrg.me>2020-04-11 17:07:05 +0000
commit2b06fc990c3738c478fbd06c5b263b87a9a2612c (patch)
tree40e98c3da4a1aa4c456a0053861e3b5147ab90c0
parentuse alpine 3.11 (diff)
downloaddocker-bitlbee-libpurple-2b06fc990c3738c478fbd06c5b263b87a9a2612c.tar.gz
docker-bitlbee-libpurple-2b06fc990c3738c478fbd06c5b263b87a9a2612c.zip
add telegram notification
-rw-r--r--.drone.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.drone.yml b/.drone.yml
index 01cd46d..f37f4c2 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -19,7 +19,7 @@ steps:
from_secret: DHP
DOCKER_HOST: tcp://docker:2375
commands:
- - sleep 20
+ - sleep 5
- docker buildx create --use --name docker --node docker --platform linux/amd64 --driver docker-container $DOCKER_HOST
- echo $PASSWORD | docker login --username $USER --password-stdin
- docker buildx build --load --cache-from ezkrg/cache:bitlbee-libpurple --cache-to ezkrg/cache:bitlbee-libpurple -t ezkrg/bitlbee-libpurple:test .
@@ -42,8 +42,22 @@ steps:
event:
- tag
+ - name: telegram
+ image: appleboy/drone-telegram
+ settings:
+ token:
+ from_secret: TT
+ to:
+ from_secret: TID
+ message: >
+ {{#success build.status}}
+ {{repo.name}} build succeeded in {{since build.started}}.
+ {{else}}
+ {{repo.name}} build failed.
+ {{/success}}
+
---
kind: signature
-hmac: 278f412caada0637ac07903f423d5929b8fad6a58e38add30f4ddbed7e1d800d
+hmac: 7e7907ad2eb2381f02ee2ad0c97864815814b5d86adde53ad3a32a5899e4c284
...