Update .drone.yml
This commit is contained in:
34
.drone.yml
34
.drone.yml
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: docker
|
||||||
name: default
|
name: seasoned build
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
@@ -9,17 +9,35 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: frontend_install
|
- name: frontend_install
|
||||||
|
image: node:13.6.0
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
- node -v
|
||||||
- name: frontend_build
|
- yarn --version
|
||||||
commands:
|
- name: deploy
|
||||||
- yarn build
|
image: appleboy/drone-ssh
|
||||||
|
pull: true
|
||||||
|
secrets:
|
||||||
|
- ssh_key
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- drone-test
|
||||||
|
status: success
|
||||||
|
settings:
|
||||||
|
host: 10.0.0.114
|
||||||
|
username: root
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
command_timeout: 600s
|
||||||
|
script:
|
||||||
|
- /home/kevin/deploy/seasoned.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
- drone-test
|
|
||||||
event:
|
event:
|
||||||
include:
|
include:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|||||||
Reference in New Issue
Block a user