build client and server
parent
f04b5c7895
commit
22391f264e
19
drone.yml
19
drone.yml
|
|
@ -5,24 +5,11 @@ steps:
|
||||||
- name: build_client
|
- name: build_client
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
|
||||||
- apt install tree
|
|
||||||
- cd Client
|
- cd Client
|
||||||
- npm install
|
- npm install
|
||||||
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
|
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
|
||||||
- cd ../Server/www
|
- name: build_server
|
||||||
- ls
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
- name: deploy
|
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- cd Server/www
|
- cd Server
|
||||||
- ls
|
- npm install
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- promote
|
|
||||||
target:
|
|
||||||
- production
|
|
||||||
Loading…
Reference in New Issue