From 520ab5f4385c8f7c6e3f20439cb393c7615fe9ac Mon Sep 17 00:00:00 2001 From: Brain Date: Tue, 22 Nov 2022 20:33:04 +0100 Subject: [PATCH 1/3] Try to build site with Drone --- .drone.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7abe2c5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,45 @@ +--- +kind: pipeline +type: docker +name: build + +trigger: + branch: + - main + event: + - push + - pull_request + +steps: + - name: lint + image: node:18 + commands: + - npm install + - npm run lint + - name: build + image: node:18 + commands: + - npm run build + +--- +kind: pipeline +type: docker +name: deploy + +trigger: + branch: + - main + event: + - push + +steps: + - name: build + image: node:18 + commands: + - npm install + - npm run build +--- +kind: signature +hmac: 6154618a4e25c2da0b4f8b39783abc0ab77b40fabab8f714d89438c21ffd6790 + +... From 99441de1ad3aa3cf9897730ff51fad1071391c69 Mon Sep 17 00:00:00 2001 From: Brain Date: Tue, 22 Nov 2022 20:36:59 +0100 Subject: [PATCH 2/3] Fix webpack build issue See https://github.com/webpack/webpack/issues/14532 --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7abe2c5..da5e481 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,8 @@ steps: - npm run lint - name: build image: node:18 + environment: + NODE_OPTIONS: '--openssl-legacy-provider' commands: - npm run build @@ -35,11 +37,13 @@ trigger: steps: - name: build image: node:18 + environment: + NODE_OPTIONS: '--openssl-legacy-provider' commands: - npm install - npm run build --- kind: signature -hmac: 6154618a4e25c2da0b4f8b39783abc0ab77b40fabab8f714d89438c21ffd6790 +hmac: 1379c171ca346c7f99acfcf60800ce1776d2341b34a1023c5862b79b13606703 ... From 8448f71c64dd11261a914e42a20f5185c55e166b Mon Sep 17 00:00:00 2001 From: Brain Date: Tue, 22 Nov 2022 20:50:12 +0100 Subject: [PATCH 3/3] Add deployment step --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index da5e481..255f73c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,8 +42,18 @@ steps: commands: - npm install - npm run build + - name: deploy + image: drillster/drone-rsync + settings: + hosts: [ "www.wtf-eg.net" ] + user: onboarding + key: + from_secret: SSH_KEY + source: ./dist + target: /srv/www/onboarding.wtf-eg.de/ + recursive: true --- kind: signature -hmac: 1379c171ca346c7f99acfcf60800ce1776d2341b34a1023c5862b79b13606703 +hmac: a64063ea577aa43936857eae4a544695de0f3b3ee20e80646df9e75b2130e4ff ...