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