From e04905de61bda278de20b81565838a97ac3dc720 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 17 Dec 2022 20:53:05 -0500 Subject: [PATCH] Add notification for failure condition --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.drone.yml b/.drone.yml index 5ebd662..bfb6848 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,3 +26,21 @@ steps: MESSAGE: Site build done! CLICK: https://drone.clortox.com/tyler/site TITLE: Drone build + when: + status: + - sucess + - name: notify + image: clortox/drone-ntfy + settings: + URL: https://ntfy.clortox.com + USERNAME: drone + PASSWORD: + from_secret: ntfy_password + TOPIC: drone-builds + TAG: warning + MESSAGE: Site build has failed! + CLICK: https://drone.clortox.com/tyler/site + TITLE: Drone build + when: + status: + - failure