59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: compliance
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
steps:
|
|
- name: lint
|
|
image: node:22.11.0@sha256:de4c8be8232b7081d8846360d73ce6dbff33c6636f2259cd14d82c0de1ac3ff2
|
|
commands:
|
|
- npm install
|
|
- npm run lint
|
|
- name: build
|
|
image: node:22.11.0@sha256:de4c8be8232b7081d8846360d73ce6dbff33c6636f2259cd14d82c0de1ac3ff2
|
|
environment:
|
|
NODE_OPTIONS: '--openssl-legacy-provider'
|
|
commands:
|
|
- npm run build
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: deploy
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
depends_on:
|
|
- compliance
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:22.11.0@sha256:de4c8be8232b7081d8846360d73ce6dbff33c6636f2259cd14d82c0de1ac3ff2
|
|
environment:
|
|
NODE_OPTIONS: '--openssl-legacy-provider'
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
- name: deploy
|
|
image: drillster/drone-rsync@sha256:f4f90f96d0714d26c93c6c4c8f99bc4a7aa1cbf4d7bb772fcfac2ec7be44a331
|
|
settings:
|
|
hosts: [ "www.wtf-eg.net" ]
|
|
user: onboarding
|
|
key:
|
|
from_secret: SSH_KEY
|
|
source: ./dist/
|
|
target: /srv/www/onboarding.wtf-eg.de/
|
|
recursive: true
|
|
|