refactor(custom): 核销弹窗更改
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
59
.drone.yml
59
.drone.yml
@@ -7,33 +7,55 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: 测试服-依赖安装&&编译打包&&上传微信小程序平台
|
||||
- name: 恢复缓存
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./.pnpm-store
|
||||
|
||||
- name: 测试服-构建部署
|
||||
pull: if-not-exists
|
||||
image: node:20-alpine
|
||||
when:
|
||||
branch:
|
||||
- test
|
||||
commands:
|
||||
# - npm config set registry https://registry.npmmirror.com/
|
||||
- npm install -g pnpm
|
||||
- pnpm install
|
||||
- pnpm config set registry https://registry.npmmirror.com/
|
||||
- pnpm config set store-dir ./.pnpm-store
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build:weapp:test:upload
|
||||
- rm -rf dist.tar
|
||||
- rm -rf node_modules
|
||||
|
||||
- name: 正式服-依赖安装&&编译打包&&上传微信小程序平台
|
||||
- name: 正式服-构建部署
|
||||
pull: if-not-exists
|
||||
image: node:20-alpine
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
commands:
|
||||
# - npm config set registry https://registry.npmmirror.com/
|
||||
- npm install -g pnpm
|
||||
- pnpm install
|
||||
- pnpm config set registry https://registry.npmmirror.com/
|
||||
- pnpm config set store-dir ./.pnpm-store
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build:weapp:prod:upload
|
||||
- rm -rf dist.tar
|
||||
- rm -rf node_modules
|
||||
|
||||
- name: 重建缓存
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./.pnpm-store
|
||||
|
||||
- name: 企业微信通知
|
||||
pull: if-not-exists
|
||||
@@ -52,13 +74,18 @@ steps:
|
||||
{
|
||||
"msgtype": "markdown",
|
||||
"markdown": {
|
||||
"content": "{{#success build.status}}✅{{else}}❌{{/success}}**{{ repo.owner }}/{{ repo.name }}** (Build #{{build.number}})\n
|
||||
>**构建结果**: {{ build.status }}
|
||||
>**构建详情**: [点击查看]({{ build.link }})
|
||||
>**代码分支**: {{ build.branch }}
|
||||
>**提交标识**: {{ build.commit }}
|
||||
>**提交发起**: {{ build.author }}
|
||||
>**提交信息**: {{ build.message }}
|
||||
"
|
||||
"content": "{{#success build.status}}✅ 构建成功{{else}}❌ 构建失败{{/success}}\n
|
||||
**项目**: {{ repo.owner }}/{{ repo.name }} (构建 #{{build.number}})\n
|
||||
**分支**: {{ build.branch }}\n
|
||||
**提交**: {{ build.commit }}\n
|
||||
**作者**: {{ build.author }}\n
|
||||
**信息**: {{ build.message }}\n
|
||||
**耗时**: {{ since build.started }} 分钟\n
|
||||
**详情**: [查看构建详情]({{ build.link }})"
|
||||
}
|
||||
}
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/drone-cache
|
||||
|
||||
Reference in New Issue
Block a user