-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathci.prod.yml
More file actions
38 lines (38 loc) · 978 Bytes
/
ci.prod.yml
File metadata and controls
38 lines (38 loc) · 978 Bytes
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
schemaVersion: v0.2
prepare:
steps:
- name: install frontend dependencies
command: cd frontend && npm ci
- name: install backend dependencies
command: cd backend && npm ci
- name: run security audit
command: cd backend && npm audit --audit-level moderate
- name: run frontend audit
command: cd frontend && npm audit --audit-level moderate
test:
steps:
- name: run backend tests
command: cd backend && npm test
- name: run frontend tests
command: cd frontend && npm test
run:
frontend:
steps:
- name: start frontend application
command: "cd frontend && NODE_ENV=production npm start"
plan: 8
replicas: 2
isPublic: true
network:
path: /
stripPath: false
api:
steps:
- name: deploy api endpoints
command: cd backend && NODE_ENV=production npm start
plan: 8
replicas: 2
isPublic: true
network:
path: /api
stripPath: false