mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Merge pull request 'add notification template' (#56) from drone-webhook-notification into main
Reviewed-on: https://codeberg.org/angestoepselt/homepage/pulls/56 pipeline ist getestet und kann migriert werden
This commit is contained in:
commit
0bbe572fb8
1 changed files with 9 additions and 6 deletions
15
.drone.yml
15
.drone.yml
|
|
@ -40,15 +40,18 @@ steps:
|
||||||
- name: send notification
|
- name: send notification
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
username: drone_webhook
|
|
||||||
password:
|
|
||||||
from_secret: webhook_password
|
|
||||||
urls:
|
urls:
|
||||||
from_secret: webhook_notify_url
|
from_secret: DRONE_WEBHOOK_ENDPOINT
|
||||||
|
username: drone
|
||||||
|
password:
|
||||||
|
from_secret: DRONE_WEBHOOK_SECRET
|
||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
"owner": "{{ repo.owner }}",
|
"branch": "{{ build.branch }}",
|
||||||
"repo": "{{ repo.name }}",
|
"author": "{{ build.author }}",
|
||||||
|
"event": "{{ build.event }}",
|
||||||
"status": "{{ build.status }}",
|
"status": "{{ build.status }}",
|
||||||
|
"owner": "{{ repo.owner }}",
|
||||||
|
"repo": "{{ repo.name }}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue