web-backset.cn/.drone.yml
2023-03-06 13:01:56 +08:00

32 lines
585 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
kind: pipeline
type: docker
name: backset.cn deploy
steps:
- name: 构建
image: node:16.19-alpine
# 容器内目录挂载到宿主机仓库需要trusted权限例如node_modules防止重复下载
volumes:
- name: dist-web
path: /apps/web/dist
commands:
- node -v
- npm -v
- npm install -g pnpm
- pnpm i
- pnpm build:web
- ls
- pwd
- cd /apps/web/dist
- ls
- cd /www
- ls
# 宿主机目录
volumes:
- name: dist-web
host:
path: /www/wwwroot/nginx/html/backset.cn