maj notif by mail

main
greg 8 months ago
parent c335773d30
commit a9989c634f
  1. 37
      .drone.yml

@ -65,22 +65,27 @@ steps:
key:
from_secret: RSYNC_STACK_KEY
- name: notification
image: appleboy/drone-telegram
- name: notify
image: greglebreton/drone-email:arm64
settings:
token:
from_secret: TELEGRAM_TOKEN
to:
from_secret: TELEGRAM_USERID
when:
status:
- failure
- success
format: markdown
message: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
from.address: greg@gregandev.fr
host: mail.gandi.net
port: 465
debug: true
username: greg@gregandev.fr
password:
from_secret: MAIL_PASSWORD
recipients: [ greg@gregandev.fr ]
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
body: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} <br />
{{#success build.status}}
✅ succeeded for 👷♂ build {{build.number}}
✅ succeeded for 👷 build {{build.number}}
{{else}}
🛑 failed for 👷♂ build {{build.number}}
{{/success}}
🛑 failed for 👷 build {{build.number}}
{{/success}}
<br /><img src='https://git.gregandev.fr/assets/img/logo.svg'/>
when:
status: [ success, failure ]
Loading…
Cancel
Save