feat: drone.ci
This commit is contained in:
parent
a3ad45fed8
commit
3f496b5295
41
.drone.yml
41
.drone.yml
|
@ -65,31 +65,26 @@ steps:
|
||||||
source: ./apps/admin/dist/*
|
source: ./apps/admin/dist/*
|
||||||
|
|
||||||
# server
|
# server
|
||||||
- name: build-server
|
- name: docker-compose build
|
||||||
image: node:16.19-alpine
|
# image: node:16.19-alpine
|
||||||
volumes:
|
# volumes:
|
||||||
- name: node_modules
|
# - name: node_modules
|
||||||
path: /drone/src/node_modules
|
# path: /drone/src/node_modules
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- docker-compose build
|
||||||
- node -v
|
|
||||||
- npm -v
|
|
||||||
- npm install -g pnpm
|
|
||||||
- pnpm i
|
|
||||||
- pnpm build:server
|
|
||||||
|
|
||||||
- name: deploy-server
|
# - name: deploy-server
|
||||||
image: appleboy/drone-scp:1.6
|
# image: appleboy/drone-scp:1.6
|
||||||
settings:
|
# settings:
|
||||||
host:
|
# host:
|
||||||
- backset.cn
|
# - backset.cn
|
||||||
username: root
|
# username: root
|
||||||
password: cr654654.
|
# password: cr654654.
|
||||||
port: 22
|
# port: 22
|
||||||
overwrite: true
|
# overwrite: true
|
||||||
command_timeout: 2m
|
# command_timeout: 2m
|
||||||
target: /www/wwwroot/nginx/html/backset.cn/
|
# target: /www/wwwroot/nginx/html/backset.cn/
|
||||||
source: ./apps/server/dist/*
|
# source: ./apps/server/dist/*
|
||||||
|
|
||||||
# - name: docker build-server
|
# - name: docker build-server
|
||||||
# image: appleboy/drone-ssh
|
# image: appleboy/drone-ssh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user