32 lines
546 B
YAML
32 lines
546 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
steps:
|
|
- name: build_client
|
|
image: node
|
|
commands:
|
|
- apt update
|
|
- apt install tree
|
|
- cd Server/src
|
|
- ls
|
|
- cd ../../
|
|
- cd Client
|
|
- npm install
|
|
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
|
|
- cd ../
|
|
- tree -a -I 'node_modules'
|
|
- cd www
|
|
- ls
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
- name: deploy
|
|
image: node
|
|
commands:
|
|
- node --version
|
|
when:
|
|
event:
|
|
- promote
|
|
target:
|
|
- production |