fix: replace removed woodpeckerci/plugin-slack with curl-based webhook
This commit is contained in:
parent
a5dff85f02
commit
2316ac752a
1 changed files with 9 additions and 4 deletions
|
|
@ -42,10 +42,15 @@ steps:
|
||||||
- "GIT_SSH_COMMAND='ssh -i ./secrets/deploy_key -o IdentitiesOnly=yes' git push origin master"
|
- "GIT_SSH_COMMAND='ssh -i ./secrets/deploy_key -o IdentitiesOnly=yes' git push origin master"
|
||||||
|
|
||||||
- name: slack
|
- name: slack
|
||||||
image: woodpeckerci/plugin-slack
|
image: curlimages/curl
|
||||||
settings:
|
commands:
|
||||||
webhook:
|
- |
|
||||||
|
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
|
from_secret: slack_webhook
|
||||||
channel: general
|
|
||||||
when:
|
when:
|
||||||
- status: [success, failure]
|
- status: [success, failure]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue