You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
575 B

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"