From 2ea4bffd49e4faea0a9c5472df6a74db8c02788a Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 31 Jan 2020 22:21:49 +0100 Subject: [PATCH] Update .drone.yml --- .drone.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index bbaa84c..0fd9253 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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