digitale-online-offline-reg.../.drone.yml

63 lines
1002 B
YAML

---
kind: pipeline
type: docker
name: compliance
trigger:
branch:
- main
event:
- push
- pull_request
steps:
- name: lint
image: node:20.12.2
commands:
- npm install
- npm run lint
- name: build
image: node:20.12.2
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:20.12.2
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: 6165a4064c19ccc6d2871c8d18859d5014a3f3c9892d70d27acbc78cfa253e54
...