fix: replace removed woodpeckerci/plugin-slack with curl-based webhook

This commit is contained in:
Viktor Barzin 2026-02-28 18:25:23 +00:00
parent a5dff85f02
commit 2316ac752a
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -42,10 +42,15 @@ steps:
- "GIT_SSH_COMMAND='ssh -i ./secrets/deploy_key -o IdentitiesOnly=yes' git push origin master"
- name: slack
image: woodpeckerci/plugin-slack
settings:
webhook:
image: curlimages/curl
commands:
- |
curl -s -X POST -H 'Content-type: application/json' \
--data "{\"channel\":\"general\",\"text\":\"Woodpecker CI: infra pipeline ${CI_PIPELINE_STATUS}\"}" \
"$SLACK_WEBHOOK" || true
secrets: [slack_webhook]
environment:
SLACK_WEBHOOK:
from_secret: slack_webhook
channel: general
when:
- status: [success, failure]