Merge pull request 'Build site with Drone' (#12) from drone into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
This commit is contained in:
commit
24506c7152
59
.drone.yml
Normal file
59
.drone.yml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
environment:
|
||||||
|
NODE_OPTIONS: '--openssl-legacy-provider'
|
||||||
|
commands:
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:18
|
||||||
|
environment:
|
||||||
|
NODE_OPTIONS: '--openssl-legacy-provider'
|
||||||
|
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: a64063ea577aa43936857eae4a544695de0f3b3ee20e80646df9e75b2130e4ff
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user