From 1c432196a6b279613b8997f8b07d4b855b5fcc27 Mon Sep 17 00:00:00 2001 From: gregandev Date: Mon, 19 Dec 2022 16:26:15 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 02d0659..aa6269b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,7 +43,22 @@ steps: key: from_secret: RSYNC_SSH_KEY -- name: notification - image: plugins/docker - commands: - - echo job done! +when: + status: [ success, failure ] + + - name: notification + image: drillster/drone-email + settings: + from.address: drone@gregandev.fr + host: mail.gandi.net + port: 465 + username: drone@gregandev.fr + password: + from-secret: MAIL_PASSWORD + recipients: [ greg@gregandev.fr ] + subject: > + [{{ build.status }}] + {{ repo.owner }}/{{ repo.name }} + ({{ build.branch }} - {{ truncate build.commit 8 }}) + body: + https://git.io/vgvPz \ No newline at end of file