From 116a9afc52cfcba8f1e77eda69fe8c27e2002033 Mon Sep 17 00:00:00 2001 From: Blallo Date: Sat, 22 Feb 2020 14:44:17 +0100 Subject: [PATCH] Fix drone pipeline --- .drone.yml | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/.drone.yml b/.drone.yml index 28adf2eb6..6f041b00a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,7 +44,8 @@ trigger: - cron --- -type: pipeline +kind: pipeline +type: docker name: notify_success clone: @@ -53,18 +54,7 @@ clone: steps: - name: notify_success pull: if-not-exists - image: leophys/mailer:0.1 - commands: | - cat << EOM \| /sendmail \ - -server-address=${M_SERVER_ADDRESS} \ - -server-port=465 \ - -user=${M_USER} \ - -password=${M_PASSWORD} \ - -from=${M_FROM} \ - -to=${M_TO} \ - -sub="[Signal|SUCCESS] $(date +%Y-%m-%d_%H:%M)" \ - Success building Signal \ - EOM + image: leophys/mailer:0.2 environment: M_SERVER_ADDRESS: from_secret: m_server_address @@ -76,6 +66,8 @@ steps: from_secret: m_from M_TO: from_secret: m_to + M_SUB: "[Signal] SUCCESS" + M_TEXT: "Success building Signal" trigger: status: @@ -85,7 +77,8 @@ depends_on: - default --- -type: pipeline +kind: pipeline +type: docker name: notify_failure clone: @@ -94,18 +87,7 @@ clone: steps: - name: notify_failure pull: if-not-exists - image: leophys/mailer:0.1 - commands: | - cat << EOM \| /sendmail \ - -server-address=${M_SERVER_ADDRESS} \ - -server-port=465 \ - -user=${M_USER} \ - -password=${M_PASSWORD} \ - -from=${M_FROM} \ - -to=${M_TO} \ - -sub="[Signal|FAIL] $(date +%Y-%m-%d_%H:%M)" \ - Failed building Signal \ - EOM + image: leophys/mailer:0.2 environment: M_SERVER_ADDRESS: from_secret: m_server_address @@ -117,6 +99,8 @@ steps: from_secret: m_from M_TO: from_secret: m_to + M_SUB: "[Signal] FAILURE" + M_TEXT: "Failed building Signal" trigger: status: @@ -124,9 +108,8 @@ trigger: depends_on: - default - --- kind: signature -hmac: 128b72f8e89a1cf87ce866c0a5315744069228fc8add6683643195e9a67611e6 +hmac: 906c57103c475d0ea004105a131defa890debc5e8caa99cf5e51e44d8ab64f7f ...