add ntfy checks

This commit is contained in:
Patrick Schratz 2024-09-01 10:59:38 +02:00
commit a6909bd1b5
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -62,3 +62,28 @@ steps:
operator: 'Equal'
value: 'true'
effect: 'NoSchedule'
- name: "ntfy"
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
when:
- status: [failure]
settings:
url: https://ntfy.devxy.io/ci-builds
token:
from_secret: ntfy_token
title: "CI '${CI_REPO}' failed"
actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
click: ${CI_BUILD_LINK}
message: |
Workflow: ${CI_WORKFLOW_NAME/\n//}
Commit message: ${CI_COMMIT_MESSAGE/\n//}
Commit Author: ${CI_COMMIT_AUTHOR/\n//}
backend_options:
kubernetes:
resources:
requests:
memory: 100Mi
cpu: 0m
limits:
memory: 300Mi
cpu: 200m