From 9436b20e0b40234b2b1e848ed77f5c1da193bd24 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Tue, 27 Dec 2022 11:55:49 +0800 Subject: [PATCH] Add email --- .woodpecker/test.yml | 55 ++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 08422af..7e2b510 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,31 +1,30 @@ branches: master pipeline: - test: - image: docker.io/sainnhe/cmake:latest - commands: - - cmake . - - 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 - # when: - # status: - # - failure + # test: + # image: docker.io/sainnhe/cmake:latest + # commands: + # - cmake . + # - 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 + # when: + # status: + # - failure