Mise à jour de '.drone.yml'

This commit is contained in:
gregandev 2023-02-04 01:39:21 +01:00
parent b2fba46e4d
commit 4c5bbe95ad

View File

@ -49,22 +49,21 @@ steps:
from_secret: RSYNC_SSH_KEY from_secret: RSYNC_SSH_KEY
- name: notification - name: notification
image: drillster/drone-email image: appleboy/drone-telegram
settings: settings:
from: drone@gregandev.fr token:
host: mail.gandi.net from_secret: TELEGRAM_TOKEN
port: 465 to:
username: drone@gregandev.fr from_secret: TELEGRAM_USERID
password:
from-secret: MAIL_PASSWORD
recipients: [ greg.lebreton@hotmail.com ]
subject: >
[{{ build.status }}]
{{ repo.owner }}/{{ repo.name }}
({{ build.branch }} - {{ truncate build.commit 8 }})
body:
https://git.io/vgvPz
when: when:
status: status:
- failure
- success - success
- failure format: markdown
message: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
{{#success build.status}}
✅ succeeded for 👷‍♂️ build {{build.number}}
{{else}}
🛑 failed for 👷‍♂️ build {{build.number}}
{{/success}}