Merge branch 'master' of http://60.204.229.151:20080/chenkangxu/merchant-web
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
ac41f54a07
31
.drone.yml
31
.drone.yml
|
@ -4,7 +4,7 @@ name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:18.20.3-alpine
|
image: docker.linbin.site/node:18.20.3-alpine
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
|
@ -12,26 +12,27 @@ steps:
|
||||||
- name: node-build
|
- name: node-build
|
||||||
path: /app/build
|
path: /app/build
|
||||||
commands: ## 此处自己定义项目工程的构建命令
|
commands: ## 此处自己定义项目工程的构建命令
|
||||||
- npm install -g pnpm
|
- npm install -g pnpm --registry=https://registry.npmmirror.com
|
||||||
|
- pnpm config set registry https://registry.npmmirror.com
|
||||||
- pnpm i
|
- pnpm i
|
||||||
- pnpm run build:prod
|
- pnpm run build:prod
|
||||||
- ls -l
|
- ls -l
|
||||||
- cp -r dist /app/build/
|
- cp -r dist /app/build/
|
||||||
when: ## 定义在什么情况下触发构建任务
|
when: ## 定义在什么情况下触发构建任务
|
||||||
branch: master #定义在哪个分支触发构建任务
|
branch: master #定义在哪个分支触发构建任务
|
||||||
- name: scp
|
# - name: scp
|
||||||
image: appleboy/drone-scp
|
# image: appleboy/drone-scp
|
||||||
volumes:
|
# volumes:
|
||||||
- name: node-build
|
# - name: node-build
|
||||||
path: /app/build
|
# path: /app/build
|
||||||
settings:
|
# settings:
|
||||||
host: 60.204.138.3
|
# host: 60.204.138.3
|
||||||
username: root
|
# username: root
|
||||||
password: 5xhqamyZ
|
# password: 5xhqamyZ
|
||||||
port: 22
|
# port: 22
|
||||||
target: /data/app/dmjs-merchant-admin
|
# target: /data/app/dmjs-merchant-admin
|
||||||
source: /app/build/dist
|
# source: /app/build/dist
|
||||||
overwrite: true
|
# overwrite: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: node-build
|
- name: node-build
|
||||||
host:
|
host:
|
||||||
|
|
Loading…
Reference in New Issue