add drone yaml
This commit is contained in:
parent
6eafd97557
commit
967c70d7e1
|
@ -0,0 +1,35 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: stage-deploy
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:16
|
||||
commands:
|
||||
- node -v
|
||||
- npm -v
|
||||
- yarn --version
|
||||
- yarn add @vue/cli-service
|
||||
- yarn install
|
||||
- yarn build
|
||||
|
||||
- name: scp
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: server_ip
|
||||
username:
|
||||
from_secret: ssh_user
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
target:
|
||||
- deploys/cake_frontend
|
||||
source:
|
||||
- dist
|
||||
rm: true
|
Loading…
Reference in New Issue