上传文件至 /
This commit is contained in:
28
.drone.yml
Normal file
28
.drone.yml
Normal 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
|
||||||
Reference in New Issue
Block a user