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.
33 lines
611 B
33 lines
611 B
kind: pipeline
|
|
type: docker
|
|
name: api2gpt-web
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
|
|
workspace:
|
|
path: /drone/src
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:16.20.0
|
|
commands:
|
|
- yarn --registry=https://registry.npmmirror.com
|
|
- yarn build:prod
|
|
|
|
- name: sync-file
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
user: root
|
|
key:
|
|
from_secret: kelvin_ssh_key
|
|
hosts: # 多个ip使用,隔开
|
|
from_secret: kelvin_ssh_host
|
|
# 来源目录
|
|
source: ./dist/*
|
|
# 目标服务器目录
|
|
target: /data/wwwroot/api2gpt/web
|
|
script:
|
|
- echo "Deploy Success"
|