-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.js
110 lines (106 loc) · 2.89 KB
/
config.js
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
"use strict";
const options = require("@bcgov/pipeline-cli").Util.parseArguments();
const changeId = options.pr; //aka pull-request
const version = "1.0.0";
const name = "crt";
Object.assign(options.git, { owner: "ychung-mot", repository: "crt" });
const phases = {
build: {
namespace: "2d982c-tools",
name: `${name}`,
phase: "build",
changeId: changeId,
suffix: `-build-${changeId}`,
instance: `${name}-build-${changeId}`,
version: `${version}-${changeId}`,
tag: `build-${version}-${changeId}`,
transient: true,
},
dev: {
namespace: "2d982c-dev",
name: `${name}`,
phase: "dev",
changeId: changeId,
suffix: `-dev-${changeId}`,
instance: `${name}-dev-${changeId}`,
version: `${version}-${changeId}`,
tag: `dev-${version}-${changeId}`,
host: `crt-2d982c-dev.apps.silver.devops.gov.bc.ca`,
dwpbi_url: "https://dev-dwpbi.th.gov.bc.ca/reports/browse/CRT",
url_prefix: "dev-",
dotnet_env: "Development",
transient: true,
twm_cpu: "100m",
twm_memory: "100Mi",
api_cpu: "200m",
api_memory: "300Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
test: {
namespace: "2d982c-test",
name: `${name}`,
phase: "test",
changeId: changeId,
suffix: `-test`,
instance: `${name}-test`,
version: `${version}`,
tag: `test-${version}`,
host: `crt-2d982c-test.apps.silver.devops.gov.bc.ca`,
dwpbi_url: "https://tst-dwpbi.th.gov.bc.ca/reports/browse/CRT",
url_prefix: "tst-",
dotnet_env: "Staging",
twm_cpu: "100m",
twm_memory: "100Mi",
api_cpu: "200m",
api_memory: "300Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
uat: {
namespace: "2d982c-test",
name: `${name}`,
phase: "uat",
changeId: changeId,
suffix: `-uat`,
instance: `${name}-uat`,
version: `${version}`,
tag: `uat-${version}`,
host: `crt-2d982c-uat.apps.silver.devops.gov.bc.ca`,
dwpbi_url: "https://uat-dwpbi.th.gov.bc.ca/reports/browse/CRT",
url_prefix: "uat-",
dotnet_env: "UAT",
twm_cpu: "100m",
twm_memory: "100Mi",
api_cpu: "200m",
api_memory: "300Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
prod: {
namespace: "2d982c-prod",
name: `${name}`,
phase: "prod",
changeId: changeId,
suffix: `-prod`,
instance: `${name}-prod`,
version: `${version}`,
tag: `prod-${version}`,
host: `crt-2d982c-prod.apps.silver.devops.gov.bc.ca`,
dwpbi_url: "https://dwpbi.th.gov.bc.ca/reports/browse/CRT",
url_prefix: "",
dotnet_env: "Production",
twm_cpu: "100m",
twm_memory: "100Mi",
api_cpu: "200m",
api_memory: "600Mi",
client_cpu: "100m",
client_memory: "300Mi",
},
};
// This callback forces the node process to exit as failure.
process.on("unhandledRejection", (reason) => {
console.log(reason);
process.exit(1);
});
module.exports = exports = { phases, options };