DroneCI config updated to push to discord webhook
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- `.drone.yml` updated to push notifications to the discord webhook.
This commit is contained in:
parent
28846af43c
commit
dd5d908e43
22
.drone.yml
22
.drone.yml
@ -50,3 +50,25 @@ steps:
|
|||||||
- |
|
- |
|
||||||
curl -X PUT https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso \
|
curl -X PUT https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso \
|
||||||
-H "Authorization: token $GITEA_TOKEN" --upload-file "Asuro-$(git rev-parse --short HEAD).iso"
|
-H "Authorization: token $GITEA_TOKEN" --upload-file "Asuro-$(git rev-parse --short HEAD).iso"
|
||||||
|
|
||||||
|
- name: msg status
|
||||||
|
image: appleboy/drone-discord
|
||||||
|
when:
|
||||||
|
status: [success, failure, changed]
|
||||||
|
settings:
|
||||||
|
webhook_id:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
webhook_token:
|
||||||
|
from_secret: discord_webhook_secret
|
||||||
|
message: >
|
||||||
|
**Drone CI - Asuro Build**
|
||||||
|
{{#success build.status}}
|
||||||
|
✅ Build successful!
|
||||||
|
{{else}}
|
||||||
|
❌ Build failed!
|
||||||
|
{{/success}}
|
||||||
|
Repository: `[{{repo.namespace}}/{{repo.name}}]`
|
||||||
|
Branch: {{build.branch}}
|
||||||
|
Commit: {{build.commit}}
|
||||||
|
Author: `[{{commit.author}} / {{commit.email}}]`
|
||||||
|
Message: {{commit.message}}
|
Loading…
x
Reference in New Issue
Block a user