Add email
ci/woodpecker/push/test Pipeline failed Details

This commit is contained in:
Sainnhe Park 2022-12-27 11:55:49 +08:00
parent 6b1b5a6c6e
commit 9436b20e0b
1 changed files with 27 additions and 28 deletions

View File

@ -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