测试打包通知2

Test_HIR_Net8
hang 2026-02-05 13:12:42 +08:00
parent 5cab834978
commit e2d19c5738
1 changed files with 22 additions and 20 deletions

View File

@ -16,14 +16,14 @@ server:
from_secret: test_ssh_pwd
steps:
- name: publish-test-hir
- name: publish-test-hir
commands:
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed"
- name: notify-wecom
- name: notify-wecom
commands:
- |
STATUS=$DRONE_BUILD_STATUS
STATUS="$DRONE_BUILD_STATUS"
if [ "$STATUS" = "success" ]; then
MSG="🟢 Test_HIR 发布成功"
@ -33,9 +33,9 @@ steps:
COLOR="warning"
fi
curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
curl -s -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
-H "Content-Type: application/json" \
-d @- <<EOF
--data-binary @- <<EOF
{
"msgtype": "markdown",
"markdown": {
@ -48,7 +48,9 @@ steps:
}
EOF
when:
status: [ success, failure ]
status:
- success
- failure
trigger:
branch: