crm-h5/.drone.yml

30 lines
610 B
YAML
Raw Permalink Normal View History

2024-07-27 11:42:24 +08:00
kind: pipeline
name: default
steps:
2024-07-27 11:59:51 +08:00
- name: build
2024-07-31 15:45:43 +08:00
image: node:16.20.2
2024-07-29 15:21:26 +08:00
volumes:
- name: build-file
2024-07-29 17:08:40 +08:00
path: /build/dist
2024-07-27 11:59:51 +08:00
commands:
2024-07-31 16:01:09 +08:00
- npm install --registry=https://registry.npm.taobao.org
2024-07-27 11:59:51 +08:00
- npm run build
2024-07-29 17:20:12 +08:00
- cp -r dist/. /build/dist
2024-07-29 15:51:08 +08:00
# - ls
# - cd dist
# - ls
2024-07-27 11:59:51 +08:00
2024-07-27 15:31:00 +08:00
#- name: test
# image: node:16.18.1
2024-07-27 11:59:51 +08:00
# commands:
2024-07-27 15:31:00 +08:00
# - npm run test
2024-07-29 15:37:20 +08:00
#- name: deploy
# image: nginx:1.21
# commands:
2024-07-29 17:08:40 +08:00
# - cp -r dist/. /usr/share/nginx/html
volumes: # 定义流水线挂载目录,用于共享数据
- name: build-file
host:
path: /root/crm-build/dist # 从宿主机中挂载的目录