forked from redhat-developer/s2i-dotnetcore
-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.js
81 lines (77 loc) · 2.13 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
"use strict";
const options = require("@bcgov/pipeline-cli").Util.parseArguments();
const changeId = options.pr; //aka pull-request
const version = "2.0.6";
const name = "sbi"; //project name prefix
Object.assign(options.git, { owner: "ychung-mot", repository: "schoolbus" });
const phases = {
build: {
namespace: "e82e9a-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: "e82e9a-dev",
name: `${name}`,
phase: "dev",
changeId: changeId,
suffix: `-dev-${changeId}`,
instance: `${name}-dev-${changeId}`,
version: `${version}-${changeId}`,
tag: `dev-${version}-${changeId}`,
host: `sbi-e82e9a-dev.apps.silver.devops.gov.bc.ca`,
dotnet_env: "Development",
dbUser: "userUXN",
dbSize: "10Gi",
transient: true,
backupVolume: "schoolbus",
backupVolumeSize: "10Gi",
verificationVolumeSize: "10Gi",
},
test: {
namespace: "e82e9a-test",
name: `${name}`,
phase: "test",
changeId: changeId,
suffix: `-test`,
instance: `${name}-test`,
version: `${version}`,
tag: `test-${version}`,
host: `sbi-e82e9a-test.apps.silver.devops.gov.bc.ca`,
dbUser: "user7KU",
dbSize: "6Gi",
dotnet_env: "Staging",
backupVolume: "schoolbus",
backupVolumeSize: "5Gi",
verificationVolumeSize: "5Gi",
},
prod: {
namespace: "e82e9a-prod",
name: `${name}`,
phase: "prod",
changeId: changeId,
suffix: `-prod`,
instance: `${name}-prod`,
version: `${version}`,
tag: `prod-${version}`,
host: `sbi-e82e9a-prod.apps.silver.devops.gov.bc.ca`,
dbUser: "userKIX",
dbSize: "10Gi",
dotnet_env: "Production",
backupVolume: "schoolbus",
backupVolumeSize: "10Gi",
verificationVolumeSize: "10Gi",
},
};
// 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 };