From 12a61a60fe9d7f88aa4237176ecc4a25d79a964e Mon Sep 17 00:00:00 2001 From: shibco Date: Tue, 29 Mar 2022 16:36:17 +0200 Subject: [PATCH] Added build pipeline. --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f699495 --- /dev/null +++ b/.drone.yml @@ -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