上传文件至 /
Some checks failed
continuous-integration/drone Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-05 15:09:02 +08:00
parent eeb10fae15
commit e3483b4b4d

28
.drone.yml Normal file
View File

@@ -0,0 +1,28 @@
kind: pipeline
type: docker
name: ci
steps:
- name: install & build
image: node
commands:
- npm config set registry http://mirrors.cloud.tencent.com/npm/
- npm i -g pnpm
- pnpm i
- pnpm build
- tar -zcvf dist.tar ./dist ./default.conf ./Dockerfile
- name: upload
image: appleboy/drone-scp
settings:
host:
from_secret: host
username:
from_secret: username
password:
from_secret: password
port: 22
command_timeout: 2m
target: /www/builder
source:
- ./dist.tar