crm-h5/.drone.yml

28 lines
486 B
YAML
Raw 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-27 16:35:48 +08:00
image: node:16.18.1
2024-07-29 15:21:26 +08:00
volumes:
- name: build-file
2024-07-29 16:46:21 +08:00
path: /build/dist # 容器内路径
2024-07-29 15:37:20 +08:00
host:
2024-07-29 16:46:21 +08:00
path: /root/crm-build/dist # 宿主机路径
2024-07-27 11:59:51 +08:00
commands:
- npm install
- npm run build
2024-07-29 15:51:08 +08:00
- cp -r dist /build
# - 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:
# - cp -r dist/. /usr/share/nginx/html