From 43a66b6521d2617c86dda9b5596c2bf4a5f3fe8c Mon Sep 17 00:00:00 2001 From: norangebit Date: Thu, 7 Nov 2019 19:29:47 +0100 Subject: [PATCH 1/2] add drone.yml --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1b4406f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: gradle:5.6.3 + commands: + - gradle build + +- name: notify + image: appleboy/drone-telegram + settings: + token: + from_secret: telegram_token + to: + from_secret: telegram_user + format: markdown + message: | + Build {{build.number}} from commit [{{truncate commit.sha 10}}]({{commit.link}}) **failed**. + {{uppercasefirst commit.author}} please fix me! From 96b66e274ad2b48f6066f680cd477fa63c149607 Mon Sep 17 00:00:00 2001 From: norangebit Date: Thu, 7 Nov 2019 19:34:59 +0100 Subject: [PATCH 2/2] edit drone.yml Send notification only on failure --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 1b4406f..f96f3b0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,3 +19,6 @@ steps: message: | Build {{build.number}} from commit [{{truncate commit.sha 10}}]({{commit.link}}) **failed**. {{uppercasefirst commit.author}} please fix me! + when: + status: + - failure