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:
matti 2022-12-01 15:45:52 +00:00
commit 0bbe572fb8

View file

@ -40,15 +40,18 @@ steps:
- name: send notification
image: plugins/webhook
settings:
username: drone_webhook
password:
from_secret: webhook_password
urls:
from_secret: webhook_notify_url
from_secret: DRONE_WEBHOOK_ENDPOINT
username: drone
password:
from_secret: DRONE_WEBHOOK_SECRET
content_type: application/json
template: |
{
"owner": "{{ repo.owner }}",
"repo": "{{ repo.name }}",
"branch": "{{ build.branch }}",
"author": "{{ build.author }}",
"event": "{{ build.event }}",
"status": "{{ build.status }}",
"owner": "{{ repo.owner }}",
"repo": "{{ repo.name }}"
}