From 1c734f15d124ea4f43ca5998f5f58b63003d9426 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 6 Apr 2020 19:58:49 +0000 Subject: [PATCH] Add telegram release notificiation (#98) Add telegram release notificiation Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/98 --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.drone.yml b/.drone.yml index eb572893..74648f3e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -78,6 +78,25 @@ steps: auto_tag: true depends_on: [ static ] + - name: telegram + image: appleboy/drone-telegram + depends_on: + - release + - docker + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_TO + message: > + {{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}} + {{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}` + Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}. + when: + status: + - success + - failure + --- kind: pipeline name: release-version @@ -133,3 +152,23 @@ steps: repo: vikunja/frontend auto_tag: true depends_on: [ static ] + + - name: telegram + image: appleboy/drone-telegram + depends_on: + - release + - docker + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_TO + message: > + {{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}} + {{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}` + Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}. + when: + status: + - success + - failure +