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]