测试打包通知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

@ -5,7 +5,7 @@ name: ssh-linux-test-hir-publish
platform:
os: linux
arch: amd64
clone:
disable: true
@ -16,26 +16,26 @@ server:
from_secret: test_ssh_pwd
steps:
- name: publish-test-hir
commands:
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed"
- 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
commands:
- |
STATUS=$DRONE_BUILD_STATUS
- name: notify-wecom
commands:
- |
STATUS="$DRONE_BUILD_STATUS"
if [ "$STATUS" = "success" ]; then
MSG="🟢 Test_HIR 发布成功"
COLOR="info"
else
MSG="🔴 Test_HIR 发布失败"
COLOR="warning"
fi
if [ "$STATUS" = "success" ]; then
MSG="🟢 Test_HIR 发布成功"
COLOR="info"
else
MSG="🔴 Test_HIR 发布失败"
COLOR="warning"
fi
curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
-H "Content-Type: application/json" \
-d @- <<EOF
curl -s -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
-H "Content-Type: application/json" \
--data-binary @- <<EOF
{
"msgtype": "markdown",
"markdown": {
@ -47,8 +47,10 @@ steps:
}
}
EOF
when:
status: [ success, failure ]
when:
status:
- success
- failure
trigger:
branch: