测试打包通知

Test_HIR_Net8
hang 2026-02-05 13:09:45 +08:00
parent 5111168349
commit da7727c4b2
1 changed files with 31 additions and 1 deletions

View File

@ -19,7 +19,37 @@ server:
steps: steps:
- name: publish-test-hir - name: publish-test-hir
commands: commands:
- bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh - 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
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 "{
\"msgtype\": \"markdown\",
\"markdown\": {
\"content\": \"${MSG}\n
> 项目:${DRONE_REPO_NAME}\n
> 分支:${DRONE_BRANCH}\n
> 构建号:${DRONE_BUILD_NUMBER}\n
> 状态:<font color=\\\"${COLOR}\\\">${STATUS}</font>\"
}
}"
when:
status: [ success, failure ]
trigger: trigger:
branch: branch: