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

59 lines
1.2 KiB
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
2025-01-02 22:36:05 +01:00
image: node:22.12.0@sha256:0e910f435308c36ea60b4cfd7b80208044d77a074d16b768a81901ce938a62dc
2022-11-22 20:33:04 +01:00
commands:
- npm install
- npm run lint
- name: build
2025-01-02 22:36:05 +01:00
image: node:22.12.0@sha256:0e910f435308c36ea60b4cfd7b80208044d77a074d16b768a81901ce938a62dc
2024-04-16 21:21:19 +02:00
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
2025-01-02 22:36:05 +01:00
image: node:22.12.0@sha256:0e910f435308c36ea60b4cfd7b80208044d77a074d16b768a81901ce938a62dc
2024-04-16 21:21:19 +02:00
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@sha256:8f850004f5bf9b3bcb5ce360876a9786f67d3a1f18861084f4252d3d4c5ee3b5
2022-11-22 20:50:12 +01:00
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