32 lines
552 B
YAML
32 lines
552 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: vue-deployment
|
||
|
|
||
|
steps:
|
||
|
# 编译
|
||
|
- name: build
|
||
|
image: node:lts
|
||
|
commands:
|
||
|
- npm install
|
||
|
- npm run build
|
||
|
|
||
|
# 部署
|
||
|
- name: deploy
|
||
|
image: appleboy/drone-scp
|
||
|
when:
|
||
|
branch: deploy
|
||
|
event: push
|
||
|
settings:
|
||
|
host:
|
||
|
from_secret: ssh_host
|
||
|
username:
|
||
|
from_secret: ssh_username
|
||
|
key:
|
||
|
from_secret: ssh_key
|
||
|
port:
|
||
|
from_secret: ssh_port
|
||
|
command_timeout: 2m
|
||
|
target:
|
||
|
from_secret: target
|
||
|
source:
|
||
|
- ./*
|