mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-25 21:11:27 +00:00
Added notification capability
This commit is contained in:
parent
ae4d97a160
commit
ffd5be6d10
12
.drone.yml
12
.drone.yml
|
@ -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 ]
|
Loading…
Reference in a new issue