undersco.re/.drone.yml

40 lines
799 B
YAML
Raw Normal View History

2022-03-29 14:36:17 +00:00
kind: pipeline
name: default
steps:
- name: Compile site
image: node:lts
commands:
- yarn
- npx harp ./ ./dist
volumes:
- name: cache
path: /drone/src/node_modules
- name: Deploy
image: drillster/drone-rsync
settings:
user:
from_secret: shikoku_ssh_user
key:
from_secret: shikoku_ssh_key
hosts:
2022-03-29 14:38:09 +00:00
from_secret: shikoku_ssh_hostname
2022-03-29 14:36:17 +00:00
source: ./dist/*
target: ~/sites/undersco.re
secrets:
2022-03-29 14:38:09 +00:00
[shikoku_ssh_key, shikoku_ssh_hostname, shikoku_ssh_user, shikoku_ssh_port]
2022-03-29 14:36:17 +00:00
port:
from_secret: shikoku_ssh_port
when:
branch:
- main
event:
- push
- custom
volumes:
- name: cache
host:
path: /tmp/drone/cache/ndc_org/node_modules