-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.js
117 lines (114 loc) · 3 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
111
112
113
114
115
116
117
"use strict";
const options = require("@bcgov/pipeline-cli").Util.parseArguments();
const changeId = options.pr; //aka pull-request
const version = "1.0.0";
const name = "hmcr";
Object.assign(options.git, { owner: "ychung-mot", repository: "HMCR" });
const phases = {
build: {
namespace: "d3d940-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: "d3d940-dev",
name: `${name}`,
phase: "dev",
changeId: changeId,
suffix: `-dev-${changeId}`,
instance: `${name}-dev-${changeId}`,
version: `${version}-${changeId}`,
tag: `dev-${version}-${changeId}`,
host: `hmcr-d3d940-dev.apps.silver.devops.gov.bc.ca`,
url_prefix: "dev-",
bceid_service: ".test",
oas_server: "prdoas5",
export_server: "tstoas5",
dotnet_env: "Development",
transient: true,
hangfire_cpu: "300m",
hangfire_memory: "300Mi",
api_cpu: "200m",
api_memory: "512Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
test: {
namespace: "d3d940-test",
name: `${name}`,
phase: "test",
changeId: changeId,
suffix: `-test`,
instance: `${name}-test`,
version: `${version}`,
tag: `test-${version}`,
host: `hmcr-d3d940-test.apps.silver.devops.gov.bc.ca`,
url_prefix: "tst-",
bceid_service: ".test",
oas_server: "prdoas5",
export_server: "tstoas5",
dotnet_env: "Staging",
hangfire_cpu: "300m",
hangfire_memory: "300Mi",
api_cpu: "200m",
api_memory: "512Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
uat: {
namespace: "d3d940-test",
name: `${name}`,
phase: "uat",
changeId: changeId,
suffix: `-uat`,
instance: `${name}-uat`,
version: `${version}`,
tag: `uat-${version}`,
host: `hmcr-d3d940-uat.apps.silver.devops.gov.bc.ca`,
url_prefix: "uat-",
bceid_service: ".test",
oas_server: "prdoas5",
export_server: "tstoas5",
dotnet_env: "UAT",
hangfire_cpu: "300m",
hangfire_memory: "300Mi",
api_cpu: "200m",
api_memory: "512Mi",
client_cpu: "100m",
client_memory: "100Mi",
},
prod: {
namespace: "d3d940-prod",
name: `${name}`,
phase: "prod",
changeId: changeId,
suffix: `-prod`,
instance: `${name}-prod`,
version: `${version}`,
tag: `prod-${version}`,
host: `hmcr-d3d940-prod.apps.silver.devops.gov.bc.ca`,
url_prefix: "",
bceid_service: "",
oas_server: "prdoas5",
export_server: "prdoas5",
dotnet_env: "Production",
hangfire_cpu: "1",
hangfire_memory: "1Gi",
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 };