47 lines
744 B
YAML
47 lines
744 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: install
|
||
|
image: node:14.0
|
||
|
commands:
|
||
|
- npm --prefix ./server install ./server
|
||
|
|
||
|
- name: test
|
||
|
image: node:14.0
|
||
|
commands:
|
||
|
- npm --prefix ./server run test
|
||
|
|
||
|
- name: lint
|
||
|
image: node:14.0
|
||
|
commands:
|
||
|
- npm --prefix ./server run lint
|
||
|
|
||
|
- name: build
|
||
|
image: node:14.0
|
||
|
commands:
|
||
|
- npm --prefix ./server run build
|
||
|
when:
|
||
|
event:
|
||
|
- push
|
||
|
- tag
|
||
|
- deployment
|
||
|
|
||
|
- name: deploy
|
||
|
image: plugins/docker
|
||
|
settings:
|
||
|
registry: registry.cliffbreak.de
|
||
|
repo: registry.cliffbreak.de/tsviewer
|
||
|
username:
|
||
|
from_secret: docker_username
|
||
|
password:
|
||
|
from_secret: docker_password
|
||
|
when:
|
||
|
event:
|
||
|
- push
|
||
|
- tag
|
||
|
- deployment
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- master
|