2026-06-09 08:45:33 +00:00
|
|
|
when:
|
|
|
|
|
event: push
|
|
|
|
|
branch: master
|
|
|
|
|
path:
|
|
|
|
|
include:
|
|
|
|
|
- 'docs/post-mortems/*.md'
|
|
|
|
|
exclude:
|
|
|
|
|
- '.woodpecker/**'
|
|
|
|
|
|
|
|
|
|
clone:
|
|
|
|
|
git:
|
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
|
settings:
|
2026-06-19 09:06:44 +00:00
|
|
|
partial: false
|
2026-06-09 08:45:33 +00:00
|
|
|
depth: 5
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: parse-and-implement
|
|
|
|
|
image: python:3.12-alpine
|
|
|
|
|
commands:
|
|
|
|
|
- apk add --no-cache jq curl git
|
|
|
|
|
- sh scripts/postmortem-pipeline.sh
|
|
|
|
|
|
|
|
|
|
- name: notify-slack
|
|
|
|
|
image: alpine
|
|
|
|
|
environment:
|
|
|
|
|
SLACK_WEBHOOK:
|
|
|
|
|
from_secret: slack_webhook
|
|
|
|
|
commands:
|
|
|
|
|
- apk add --no-cache curl
|
|
|
|
|
- "curl -sf -X POST https://hooks.slack.com/services/$SLACK_WEBHOOK -H 'Content-Type: application/json' -d '{\"text\": \"Post-mortem TODO pipeline completed\"}' || true"
|
|
|
|
|
when:
|
|
|
|
|
- status: [success, failure]
|