Added notification capability

This commit is contained in:
Illia Chub 2022-01-17 09:11:29 +02:00
parent ae4d97a160
commit ffd5be6d10

View file

@ -93,4 +93,14 @@ steps:
- export machineid=$( for i in {0..24}; do jq 'if .servers['$i'].name == "ci-sibling" then .servers['$i'].id else null end' .hetzner_servers.json; done | grep -v null | sed 's/"//g')
- >
curl -s -X DELETE "https://api.hetzner.cloud/v1/servers/$machineid"
-H "Authorization: Bearer $PASSWORD"
-H "Authorization: Bearer $PASSWORD"
---
pipeline:
notify:
image: drillster/drone-email
host: selfprivacy.org
username: ci
password: 228337
from: ci@selfprivacy.org
when:
status: [ success, failure ]