Update CI to use custom mailer image
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Sainnhe Park 2022-12-28 14:48:10 +08:00
parent 9436b20e0b
commit 5e617796e6

View File

@ -8,23 +8,23 @@ pipeline:
# - cmake --build . --parallel $(nproc) --target all
# - ctest
notify:
image: drillster/drone-email
settings:
from.address:
from_secret: EMAIL_ADDRESS
from.name:
from_secret: EMAIL_SENDER
host:
from_secret: EMAIL_HOST
port:
from_secret: EMAIL_PORT
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
no_starttls: true
recipients:
- i@sainnhe.dev
image: sainnhe/mailer
commands:
- mailer
secrets:
[
MAILER_FROM_ADDRESS,
MAILER_FROM_NAME,
MAILER_RECIPIENTS,
MAILER_USER_NAME,
MAILER_PASSWORD,
MAILER_HOST,
MAILER_PORT,
MAILER_USE_STARTTLS,
]
environment:
- MAILER_SUBJECT="Run Failed"
- MAILER_BODY=${CI_BUILD_LINK}
# when:
# status:
# - failure