fix: Woodpecker v3 secrets→environment migration
This commit is contained in:
parent
8540f48a28
commit
ce7a4e6e76
1 changed files with 3 additions and 2 deletions
|
|
@ -16,10 +16,11 @@ steps:
|
||||||
|
|
||||||
- name: notify-slack
|
- name: notify-slack
|
||||||
image: alpine
|
image: alpine
|
||||||
|
environment:
|
||||||
|
SLACK_WEBHOOK:
|
||||||
|
from_secret: slack_webhook
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl
|
- 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"
|
- "curl -sf -X POST https://hooks.slack.com/services/$SLACK_WEBHOOK -H 'Content-Type: application/json' -d '{\"text\": \"Post-mortem TODO pipeline completed\"}' || true"
|
||||||
secrets:
|
|
||||||
- slack_webhook
|
|
||||||
when:
|
when:
|
||||||
- status: [success, failure]
|
- status: [success, failure]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue