From 28253c84d708ecb7c915e02f8f760720512b5006 Mon Sep 17 00:00:00 2001 From: malmal200 Date: Thu, 3 Jun 2021 19:36:58 +0100 Subject: [PATCH] added discord notifications to ci config --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.drone.yml b/.drone.yml index ea5228a..be0ec0f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,3 +8,31 @@ steps: commands: - echo hello - echo world + +- name: failure + image: appleboy/discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + message: test failed + username: drone + avatar_url: https://drone.malachy.ie/favicon.png + when: + status: + - failure + +- name: success + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + message: test succeeded + username: drone + avatar_url: https://drone.malachy.ie/favicon.png + when: + status: + - success