This commit is contained in:
parent
c335773d30
commit
a9989c634f
35
.drone.yml
35
.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}}
|
||||
🛑 failed for 👷♂️ build {{build.number}}
|
||||
{{/success}}
|
||||
<br /><img src='https://git.gregandev.fr/assets/img/logo.svg'/>
|
||||
when:
|
||||
status: [ success, failure ]
|
Loading…
x
Reference in New Issue
Block a user