trying discord again

This commit is contained in:
Luke Robles 2023-05-20 08:43:59 -07:00
parent 94658a6c85
commit d769872f09

View File

@ -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