use feishu webhook notification
This commit is contained in:
1 parent
1eaee98bca
commit
e8318db7c5
1 file changed
+9
-11
+9
-11
@@ -53,16 +53,14 @@ steps:
|
||||
- docker compose --env-file .env up -d
|
||||
|
||||
- name: feishu
|
||||
image: keepchen/drone-feishu
|
||||
settings:
|
||||
token:
|
||||
from_secret: feishu_token
|
||||
secret:
|
||||
from_secret: feishu_secret
|
||||
card_title: "Office-xbot-feishu 通知"
|
||||
success_img_key: ""
|
||||
failure_img_key: ""
|
||||
powered_by_img_key: ""
|
||||
powered_by_img_alt: ""
|
||||
image: curlimages/curl:8.8.0
|
||||
commands:
|
||||
- >
|
||||
curl -fsS -X POST "$FEISHU_WEBHOOK"
|
||||
-H 'Content-Type: application/json'
|
||||
-d '{"msg_type":"text","content":{"text":"部署成功"}}'
|
||||
environment:
|
||||
FEISHU_WEBHOOK:
|
||||
from_secret: feishu_webhook
|
||||
when:
|
||||
- status: [failure, success]
|
||||
Reference in new issue
Block a user