From de6761b03a7b25fe2cd1334e23556e0183eec7ee Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 15 Mar 2022 14:35:29 +1300 Subject: [PATCH] .. --- .drone.jsonnet | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 1cd481e..9b987a6 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -17,6 +17,7 @@ local docker_service() = local email_notification() = { + name: 'notify by email', image: 'drillster/drone-email', settings: { host: 'mail.guise.net.nz', @@ -71,8 +72,11 @@ local gen_pipeline(distro) = gen_pipeline('debian10'), gen_pipeline('debian11'), {kind: 'pipeline', - name: 'Send notification by email', - steps: [email_notification()], + type: 'docker', + name: 'Notify', + steps: [email_notification()], + when: + { status: [ 'success', 'failure' ] }, depends_on: ['Test on %(distro)s' % { distro: distro } for distro in distros]