Added build pipeline.
This commit is contained in:
parent
f22eee6141
commit
12a61a60fe
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
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:
|
||||||
|
from_secret: shikoku_hostname
|
||||||
|
source: ./dist/*
|
||||||
|
target: ~/sites/undersco.re
|
||||||
|
secrets:
|
||||||
|
[shikoku_ssh_key, shikoku_hostname, shikoku_ssh_user, shikoku_ssh_port]
|
||||||
|
port:
|
||||||
|
from_secret: shikoku_ssh_port
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- custom
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /tmp/drone/cache/ndc_org/node_modules
|
Loading…
Reference in New Issue
Block a user