From a6f3d8c4432dd1069a4203dbf430b6aea2ec8fbc Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 19 May 2023 11:33:47 -0700 Subject: [PATCH] Add pipelien started message --- .drone.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index acfa0780..6db41bf0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,22 @@ type: docker name: default steps: +- name: discord notification + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + avatar_url: https://miro.medium.com/v2/resize:fit:1358/0*AqO_2lNemh_Fl9Gm.png + message: "Pipeline ${DRONE_BUILD_NUMBER} has started\nhttp://192.168.2.6/ldooks/dragon-bot/${DRONE_BUILD_NUMBER}" + trigger: + branch: + - master + event: + - push + + - name: lint-python image: python:3.10-slim commands: @@ -54,7 +70,7 @@ steps: webhook_token: from_secret: discord_webhook_token avatar_url: https://miro.medium.com/v2/resize:fit:1358/0*AqO_2lNemh_Fl9Gm.png - message: "Pipeline ${DRONE_BUILD_NUMBER} has succeeded\nhttp://192.168.2.6/ldooks/dragon-bot/${DRONE_BUILD_NUMBER}" + message: "Pipeline ${DRONE_BUILD_NUMBER} has succeeded\nhttp://192.168.2.6/ldooks/dragon-bot/${DRONE_BUILD_NUMBER} ✅" trigger: branch: - master