add notification template

call an webhookendpoint in our n8n installation and notify over signal-cli API
This commit is contained in:
matti 2022-12-01 15:22:01 +00:00
parent 3bcd963851
commit 2dad707a89

View file

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