Files
seasoned/.drone.yml

52 lines
799 B
YAML

---
kind: pipeline
type: docker
name: seasoned build
platform:
os: linux
arch: amd64
steps:
- name: frontend install
image: node:18.2.0
commands:
- node -v
- yarn --version
- yarn
- name: frontend build
image: node:18.2.0
commands:
- node -v
- yarn --version
- yarn
- yarn build
- 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:
event:
include:
- push
- pull_request