trying discord again
This commit is contained in:
parent
94658a6c85
commit
d769872f09
17
.drone.yml
17
.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
|
||||
|
Loading…
x
Reference in New Issue
Block a user