Files
blog/.drone.yml
2021-01-04 19:23:11 +01:00

57 lines
795 B
YAML

---
kind: pipeline
type: docker
name: blog_kevins-lab
platform:
os: linux
arch: amd64
steps:
- name: frontend_install
image: node:14
commands:
- node -v
- yarn --version
- name: frontend_build
image: node:14
commands:
- node -v
- yarn --version
- yarn
- yarn build
- name: deploy
image: appleboy/drone-ssh
pull: true
secrets:
- ssh_key
- user
- host_address
when:
event:
- push
branch:
- main
- drone-test
status: success
settings:
host:
from_secret: host_address
username:
from_secret: user
key:
from_secret: ssh_key
command_timeout: 600s
script:
- /root/blog-deploy.sh
trigger:
branch:
- main
event:
include:
- pull_request
- push