添加部署脚本
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
97905909f7
commit
d11632c6cd
@ -0,0 +1,28 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: api2gpt-web
|
||||
|
||||
workspace:
|
||||
path: /drone/src
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:16.15.0-slim
|
||||
commands:
|
||||
- yarn --registry=https://registry.npmmirror.com
|
||||
- yarn build:prod
|
||||
|
||||
- name: sync-file
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
user: root
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
hosts: # 多个ip使用,隔开
|
||||
from_secret: ssh_host
|
||||
# 来源目录
|
||||
source: ./dist/*
|
||||
# 目标服务器目录
|
||||
target: /mnt/data/wwwroot/api2gpt/web
|
||||
script:
|
||||
- echo "Deploy Success"
|
||||
Loading…
Reference in new issue