From ffd5be6d10aaa0f5d726806dd4af922b32d36cf6 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 17 Jan 2022 09:11:29 +0200 Subject: [PATCH] Added notification capability --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e2a4f9d..1961d85 100644 --- a/.drone.yml +++ b/.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" \ No newline at end of file + -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 ] \ No newline at end of file