feat: drone.ci
This commit is contained in:
parent
103ca5fd53
commit
a3ad45fed8
61
.drone.yml
61
.drone.yml
|
@ -64,44 +64,41 @@ steps:
|
||||||
target: /www/wwwroot/nginx/html/backset.cn/
|
target: /www/wwwroot/nginx/html/backset.cn/
|
||||||
source: ./apps/admin/dist/*
|
source: ./apps/admin/dist/*
|
||||||
|
|
||||||
# # server
|
# server
|
||||||
# - name: build-server
|
- name: build-server
|
||||||
# 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
|
- pwd
|
||||||
# - node -v
|
- node -v
|
||||||
# - npm -v
|
- npm -v
|
||||||
# - npm install -g pnpm
|
- npm install -g pnpm
|
||||||
# - pnpm i
|
- pnpm i
|
||||||
# - pnpm build:server
|
- pnpm build:server
|
||||||
|
|
||||||
# - name: deploy-server
|
- name: deploy-server
|
||||||
# image: appleboy/drone-scp:1.6
|
image: appleboy/drone-scp:1.6
|
||||||
# settings:
|
|
||||||
# host:
|
|
||||||
# - backset.cn
|
|
||||||
# username: root
|
|
||||||
# password: cr654654.
|
|
||||||
# port: 22
|
|
||||||
# overwrite: true
|
|
||||||
# command_timeout: 2m
|
|
||||||
# target: /www/wwwroot/nginx/html/backset.cn/
|
|
||||||
# source: ./apps/server/dist/*
|
|
||||||
|
|
||||||
- name: docker build-server
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
- backset.cn
|
- backset.cn
|
||||||
username: root
|
username: root
|
||||||
password: cr654654.
|
password: cr654654.
|
||||||
port: 22
|
port: 22
|
||||||
|
overwrite: true
|
||||||
command_timeout: 2m
|
command_timeout: 2m
|
||||||
script:
|
target: /www/wwwroot/nginx/html/backset.cn/
|
||||||
- pwd
|
source: ./apps/server/dist/*
|
||||||
# - echo "docker compose build backset-server"
|
|
||||||
# - docker compose build
|
|
||||||
|
|
||||||
|
# - name: docker build-server
|
||||||
|
# image: appleboy/drone-ssh
|
||||||
|
# settings:
|
||||||
|
# host:
|
||||||
|
# - backset.cn
|
||||||
|
# username: root
|
||||||
|
# password: cr654654.
|
||||||
|
# port: 22
|
||||||
|
# command_timeout: 2m
|
||||||
|
# script:
|
||||||
|
# - cd /www/wwwroot/n
|
||||||
|
|
Loading…
Reference in New Issue
Block a user