This commit is contained in:
Michael Grote 2024-01-24 20:39:52 +01:00
parent 124713bb39
commit 1efc46ce05
1 changed files with 16 additions and 17 deletions

View File

@ -17,21 +17,20 @@ steps:
notify:
name: notify
image: drillster/drone-email
image: deblan/woodpecker-email-php
settings:
host: docker10.mgrote.net:1025
from: ci@mgrote.net
#subject: "CI: Run failed! - $CI_REPO"
subject: "test"
# body: |
# $CI_REPO
# $CI_REPO_DEFAULT_BRANCH
# $CI_COMMIT_SHA
# $CI_PIPELINE_NUMBER
# $CI_PIPELINE_URL
# $CI_WORKFLOW_NAME
# $CI_STEP_NAME
# $CI_STEP_STATUS
when:
status:
- failure
dsn: "smtp://docker10.mgrote.net:1025"
from:
address: "ci@mgrote.net"
name: "woodpecker"
evaluate: "build.status == 'failure' or prev_pipeline.status == 'failure'"
recipients:
- info@mgrote.net
content:
subject: "[{{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
body: |
{{ commit.sha }}<br>
{{ pipeline.status }}<br>
{{ commit.author_email }}<br>
attachments:
- log/*