-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.main.yml
More file actions
68 lines (68 loc) · 1.49 KB
/
Copy pathci.main.yml
File metadata and controls
68 lines (68 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
schemaVersion: v0.2
prepare:
steps:
- name: update node
command: sudo n lts
- name: Install & build commenting ui
command: cd commenting-ui && npm install && npm run build
- name: install proxy
command: cd proxy && npm install
- name: Install target app
command: cd target-app && npm install
test:
steps: []
run:
cs-proxy:
steps:
- command: sudo n lts
- command: cd proxy && node server.js
plan: 8
replicas: 1
network:
ports:
- port: 3000
isPublic: false
paths:
- port: 3000
path: /
stripPath: true
env:
TARGET_URL: https://77015-3000.2.codesphere.com/target
TOOLS_URL: https://77015-3000.2.codesphere.com/commenting-ui
comment-ui:
steps:
- command: sudo n lts
- command: cd commenting-ui && npm start
plan: 8
replicas: 1
network:
ports:
- port: 3000
isPublic: false
- port: 3002
isPublic: false
paths:
- port: 3000
path: /commenting-ui
stripPath: true
env:
BASE_PATH: /
target-app:
steps:
- name: update node
command: sudo n lts
- command: cd target-app && node server.js
plan: 8
replicas: 1
network:
ports:
- port: 3000
isPublic: false
- port: 3001
isPublic: false
paths:
- port: 3000
path: /target
stripPath: true
env:
BASE_PATH: /