2023-03-05 17:17:04 +08:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-03-06 10:06:47 +08:00
|
|
|
type: docker
|
2023-03-06 10:05:46 +08:00
|
|
|
name: backset.cn deploy
|
2023-03-05 17:17:04 +08:00
|
|
|
|
|
|
|
steps:
|
2023-03-06 10:06:47 +08:00
|
|
|
- name: 基础环境
|
|
|
|
image: node:16.19-alpine
|
2023-03-06 10:05:46 +08:00
|
|
|
commands:
|
2023-03-06 10:06:47 +08:00
|
|
|
- node -v
|
|
|
|
- npm -v
|
2023-03-06 10:08:12 +08:00
|
|
|
- ls
|
2023-03-06 10:05:46 +08:00
|
|
|
|
2023-03-06 10:06:47 +08:00
|
|
|
# - name: 依赖更新
|
|
|
|
# commands:
|
|
|
|
# - pnpm install
|
2023-03-06 10:05:46 +08:00
|
|
|
|
2023-03-06 10:06:47 +08:00
|
|
|
# - name: apps/web 项目构建
|
|
|
|
# commands:
|
|
|
|
# - pnpm build:web
|
|
|
|
|
|
|
|
# - name: 发布web服务器
|
|
|
|
# commands:
|
|
|
|
# - ls
|
|
|
|
# - cp -r ./apps/web/dist/ /www/wwwroot/nginx/html/backset.cn
|