From 4cba4053a8318aa3db161b101ee67b53e97aff04 Mon Sep 17 00:00:00 2001 From: yxhc <825210484@qq.com> Date: Thu, 22 Aug 2024 13:49:53 +0800 Subject: [PATCH] fix: bug --- .drone.yml | 96 +++++++++++++++++++++++++++++++++------------------------- drone/end.md | 33 ++++++++++++++++++++ drone/index.md | 30 +++++++++--------- drone/start.md | 31 +++++++++++++++++++ 4 files changed, 134 insertions(+), 56 deletions(-) create mode 100644 drone/end.md create mode 100644 drone/start.md diff --git a/.drone.yml b/.drone.yml index e1d5fa3..1a792f0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,41 +1,55 @@ -kind: pipeline -type: docker -name: default - -steps: - - name: build - image: node:16.18.0 - commands: - - npm config set registry http://registry.npm.taobao.org - - npm install - - npm run build_test - - name: develop deploy - image: appleboy/drone-scp - settings: - host: - from_secret: host - port: - from_secret: port - username: - from_secret: username - password: - from_secret: password - target: /data/ls_rebuild/web - source: ./dist - rm: true - when: - branch: - - main - - name: notification - image: lddsb/drone-dingtalk-message - settings: - token: 840fed65878154561a096c03a516ded894ab1b91efbe1643fe492dd93593e7a3 - type: markdown - secret: SEC9fe40cc775658cbef7a30b43fd852b642201754f15df42cd339627e05cfde41e - tpl: ./drone/index.md - tips_title: 丽水二期web构建 - success_pic: https://i.ibb.co/CB4HBLP/success-1.png - failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png -trigger: - branch: - - main +kind: pipeline +type: docker +name: default + +steps: + - name: startnotification + image: lddsb/drone-dingtalk-message + settings: + token: 66039657ac01b5e44720fbc01eaa107c351c32dc1da177efc766637a8fd96913 + type: markdown + secret: SECb58ffd267c6598d027367070e4d6300db42f2b213a53392ee9a10adf3178b196 + tpl: ./drone/start.md + tips_title: 湖州项管web开始构建 + success_pic: https://i.ibb.co/CB4HBLP/success-1.png + failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png + msg_at_mobiles: 15106115982 + - name: build + image: node:12.16.3 + commands: + - npm config set registry http://registry.npm.taobao.org + - npm install + - npm run build + - name: develop deploy + image: appleboy/drone-scp + settings: + host: + from_secret: host + port: + from_secret: port + username: + from_secret: username + password: + from_secret: password + target: /server/huzhou/web + source: ./dist + rm: true + when: + branch: + - master + - name: endnotification + image: lddsb/drone-dingtalk-message + settings: + token: 66039657ac01b5e44720fbc01eaa107c351c32dc1da177efc766637a8fd96913 + type: markdown + secret: SECb58ffd267c6598d027367070e4d6300db42f2b213a53392ee9a10adf3178b196 + tpl: ./drone/end.md + tips_title: 湖州项管web开始构建 + success_pic: https://i.ibb.co/CB4HBLP/success-1.png + failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png + msg_at_mobiles: 15106115982 +trigger: + branch: + - master + + diff --git a/drone/end.md b/drone/end.md new file mode 100644 index 0000000..4d4eb13 --- /dev/null +++ b/drone/end.md @@ -0,0 +1,33 @@ + + + + + + +## 杭州项管:构建完成 +- 结果:[TPL_BUILD_STATUS] +- 耗时:[TPL_BUILD_CONSUMING]s +- 构建详情:[查看]([TPL_BUILD_LINK]) +- 修改内容:[TPL_COMMIT_MSG] [查看详情]([TPL_COMMIT_LINK]) +## 仓库信息 +- 仓库:[TPL_REPO_SHORT_NAME] +- 分支:[TPL_COMMIT_BRANCH] +- 作者:[[TPL_AUTHOR_NAME]([TPL_AUTHOR_EMAIL])](mailto:[TPL_AUTHOR_EMAIL]) + +@15106115982 diff --git a/drone/index.md b/drone/index.md index 797cd65..7414cc5 100644 --- a/drone/index.md +++ b/drone/index.md @@ -1,15 +1,15 @@ -![结果]([TPL_STATUS_PIC]) - -仓库:[TPL_REPO_SHORT_NAME] - -分支:[TPL_COMMIT_BRANCH] - -commit: [查看]([TPL_COMMIT_LINK]) - -结果:[TPL_BUILD_STATUS] - -耗时:[TPL_BUILD_CONSUMING]s - -作者:[[TPL_AUTHOR_NAME]([TPL_AUTHOR_EMAIL])](mailto:[TPL_AUTHOR_EMAIL]) - -详情:[查看]([TPL_BUILD_LINK]) +![结果]([TPL_STATUS_PIC]) + +仓库:[TPL_REPO_SHORT_NAME] + +分支:[TPL_COMMIT_BRANCH] + +commit: [查看]([TPL_COMMIT_LINK]) + +结果:[TPL_BUILD_STATUS] + +耗时:[TPL_BUILD_CONSUMING]s + +作者:[[TPL_AUTHOR_NAME]([TPL_AUTHOR_EMAIL])](mailto:[TPL_AUTHOR_EMAIL]) + +详情:[查看]([TPL_BUILD_LINK]) \ No newline at end of file diff --git a/drone/start.md b/drone/start.md new file mode 100644 index 0000000..523b7d9 --- /dev/null +++ b/drone/start.md @@ -0,0 +1,31 @@ + + + + + + +## 杭州项管:开始构建[TPL_STATUS_COLOR] +- 构建详情:[查看]([TPL_BUILD_LINK]) +- 修改内容:[TPL_COMMIT_MSG] [查看详情]([TPL_COMMIT_LINK]) +## 仓库信息 +- 仓库:[TPL_REPO_SHORT_NAME] +- 分支:[TPL_COMMIT_BRANCH] +- 作者:[[TPL_AUTHOR_NAME]([TPL_AUTHOR_EMAIL])](mailto:[TPL_AUTHOR_EMAIL]) + +@15106115982