maj notif by mail

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

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