Update .drone.yml

This commit is contained in:
2020-01-31 22:21:49 +01:00
committed by GitHub
parent 5ae52f59fc
commit 2ea4bffd49

View File

@@ -1,7 +1,7 @@
---
kind: pipeline
type: exec
name: default
type: docker
name: seasoned build
platform:
os: linux
@@ -9,17 +9,35 @@ platform:
steps:
- name: frontend_install
image: node:13.6.0
commands:
- yarn
- name: frontend_build
commands:
- yarn build
- node -v
- yarn --version
- name: deploy
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:
branch:
- master
- drone-test
event:
include:
- pull_request
- push
- push