From d769872f0906df4ec58261297bae27d97de86014 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sat, 20 May 2023 08:43:59 -0700 Subject: [PATCH] trying discord again --- .drone.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e0c47d32..06ea9bfd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: Build and Push docker image steps: - name: lint-python @@ -46,3 +46,18 @@ steps: - master event: - push + +- 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: "{{#success build.status}}āœ…{{else}}āŒ{{/success}} Repository `[{{repo.name}}/{{commit.branch}}]` triggered by event `[{{uppercase build.event}}]` for build.\n - Commit [[{{commit.sha}}]({{commit.link}})]\n - Author `[{{commit.author}} / {{commit.email}}]`\n - Message: {{commit.message}} - Drone build [[#{{build.number}}]({{build.link}})] reported `[{{uppercase build.status}}]` at `[{{datetime build.finished \"2006.01.02 15:04\" \"\"}}]`\n​" + trigger: + branch: + - master + event: + - push