From 6bcefaa8c85455acaa16b72b71a0c5a5b4432b6b Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 4 Nov 2019 18:54:50 +0100 Subject: maybe this time\? --- .drone.yml | 67 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/.drone.yml b/.drone.yml index 526e9e1..cfacb86 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,3 @@ -kind: pipeline -name: default - platform: os: linux arch: amd64 @@ -10,43 +7,43 @@ steps: image: plugins/docker settings: tags: - - latest + - latest repo: registry.darknebu.la/circus/manager registry: registry.darknebu.la username: - from_secret: docker_username + from_secret: docker_username password: - from_secret: docker_password + from_secret: docker_password - 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}} + 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}} -- cgit 1.4.1