From 5e617796e6f5d5b998762081f25ebdbb7fbf5cc1 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Wed, 28 Dec 2022 14:48:10 +0800 Subject: [PATCH] Update CI to use custom mailer image --- .woodpecker/test.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 7e2b510..8d62a8d 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -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