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

40 lines
707 B
YAML

---
kind: pipeline
type: docker
name: backset.cn deploy
# 宿主机目录
volumes:
- name: node_modules
host:
path: /home/drone/cache/node_modules
steps:
- name: 构建
image: node:16.19-alpine
# 容器内挂载点
volumes:
- name: node_modules-web
path: /node_modules
commands:
- pwd
- node -v
- npm -v
- npm install -g pnpm
- pnpm i
- pnpm build:web
when:
event: tag
- name: 部署
image: appleboy/drone-scp
settings:
host: mozzie.cn
username: root
password: cr654654.
port: 22
target: /www/wwwroot/nginx/html/backset.cn/
source: ./dist/*
when:
event: tag