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