homeserver/.woodpecker/notify.yml

34 lines
788 B
YAML
Raw Normal View History

2024-01-24 20:53:56 +01:00
---
depends_on:
- gitleaks
- ansible-lint
2024-01-24 21:00:17 +01:00
skip_clone: true
2024-01-24 20:53:56 +01:00
steps:
notify:
name: notify
2024-01-24 21:36:19 +01:00
image: registry.mgrote.net/allzweckcontainer:latest
commands:
2024-01-24 21:51:36 +01:00
- echo $CI_PREV_PIPELINE_URL # debug
2024-01-24 21:53:08 +01:00
- echo $CI_PIPELINE_PARENT
- echo $CI_PIPELINE_STATUS
2024-01-24 21:36:19 +01:00
- |
2024-01-24 21:47:16 +01:00
s-nail \
2024-01-24 21:58:12 +01:00
-s "CI: [$CI_PIPELINE_STATUS] $CI_REPO $CI_WORKFLOW_NAME" \
2024-01-24 21:47:16 +01:00
-S mta=smtp://docker10.mgrote.net:1025 \
-S smtp-auth=none \
-S v15-compat \
-S from=ci@mgrote.net \
2024-01-24 21:53:08 +01:00
$CI_COMMIT_AUTHOR_EMAIL <<EOF
2024-01-24 21:47:16 +01:00
Repository: $CI_REPO
Commit: $CI_COMMIT_SHA
2024-01-24 21:50:19 +01:00
URL: $CI_PREV_PIPELINE_URL
2024-01-24 21:58:12 +01:00
URL-Git: $CI_PIPELINE_FORGE_URL
Status: $CI_PIPELINE_STATUS
2024-01-24 21:36:19 +01:00
EOF
2024-01-24 21:03:18 +01:00
when:
event: [push]
2024-01-24 20:53:56 +01:00
2024-01-24 21:09:05 +01:00
runs_on: [ success, failure ]