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