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

63 lines
987 B
YAML
Raw Normal View History

2022-11-22 20:33:04 +01:00
---
kind: pipeline
type: docker
2022-11-22 20:55:53 +01:00
name: compliance
2022-11-22 20:33:04 +01:00
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'
2022-11-22 20:33:04 +01:00
commands:
- npm run build
---
kind: pipeline
type: docker
name: deploy
trigger:
branch:
- main
event:
- push
2022-11-22 20:55:53 +01:00
depends_on:
- compliance
2022-11-22 20:33:04 +01:00
steps:
- name: build
image: node:18
environment:
NODE_OPTIONS: '--openssl-legacy-provider'
2022-11-22 20:33:04 +01:00
commands:
- npm install
- npm run build
2022-11-22 20:50:12 +01:00
- name: deploy
image: drillster/drone-rsync
settings:
hosts: [ "www.wtf-eg.net" ]
user: onboarding
key:
from_secret: SSH_KEY
2022-11-22 20:55:53 +01:00
source: ./dist/
2022-11-22 20:50:12 +01:00
target: /srv/www/onboarding.wtf-eg.de/
recursive: true
2022-11-22 20:33:04 +01:00
---
kind: signature
2022-11-22 20:55:53 +01:00
hmac: 0f87c59a97ed13bfd04074b63d1e5567b2ff228141951e7edb14ba31a123284e
2022-11-22 20:33:04 +01:00
...