cookbook/.drone.yml

35 lines
603 B
YAML

---
kind: pipeline
type: docker
name: main
steps:
- name: lint
image: node:17-alpine
commands:
- yarn --dev
- yarn run lint
- name: build
image: node:17-alpine
commands:
- yarn run build
- name: deploy
image: appleboy/drone-scp
settings:
host: southlondon.cc
username: jakew
key:
from_secret: ssh_key
port: 22
target: /home/jakew/public_html/cookbook/
source: _site
strip_components: 1
when:
branch:
- main
event:
- push
- tag
repo:
- jakew/cookbook