This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js.example
115 lines (115 loc) · 3.33 KB
/
config.js.example
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
const { getWhitelist, getSubdomainsFromBranchNames } = require('./lib/getWhitelist');
module.exports = {
projects: [
{
owner: 'deseretdigital',
repo: 'ksl-api',
user: 'sdickson',
token: 'xxxx',
build: [
{
proc: 'rm',
args: ['composer.lock'],
proceedOnFailure: true
},
{
proc: 'composer',
args: ['install', '-q'],
proceedOnFailure: true
},
{
proc: 'ln',
args: ['-nfs', '/usr/local/framework/DDM', 'library/DDM'],
proceedOnFailure: true
},
{
proc: 'ln',
args: ['-nfs', '/export/ksl/v2', 'library/ksl'],
proceedOnFailure: true
},
{
proc: 'ln',
args: ['-nfs', '/usr/local/framework/zend/library/Zend', 'library/Zend'],
proceedOnFailure: true
},
{
proc: 'ln',
args: ['-nfs', '/usr/local/framework', 'framework'],
proceedOnFailure: true
}
],
webhook: ''
},
{
owner: 'deseretdigital',
repo: 'm-ksl-cars',
user: 'sdickson',
token: 'xxxx',
build: [
{
proc: 'sudo',
args: ['npm', 'install'],
proceedOnFailure: true
},
{
proc: 'sudo',
args: ['npm', 'run', 'prod'],
proceedOnFailure: true
},
{
proc: 'rm',
args: ['composer.lock'],
proceedOnFailure: true
},
{
proc: 'composer',
args: ['install', '-q'],
proceedOnFailure: true
}
],
webhook: ''
},
{
owner: 'deseretdigital',
repo: 'm-ksl-myaccount',
user: 'sdickson',
token: 'xxxx',
build: [
{
proc: 'sudo',
args: ['npm', 'run', 'brancher'],
proceedOnFailure: true
}
],
webhook: ''
}
],
postBuildProcess: [
{
proc: 'apache2ctl',
args: ['graceful'],
proceedOnFailure: true
},
{
proc: '/var/dynamic/cars-branches/branch_ksl-api_master/public_html/classifieds/common/scripts/create-constants.sh',
args: [
'-s',
function({ anyBranchesUpdated }) {
if (anyBranchesUpdated) {
return getSubdomainsFromBranchNames(getWhitelist().map(({branch}) => branch)).join(',');
}
return '';
},
'-d',
'cars.test.ksl.com'
],
proceedOnFailure: true
}
],
apacheConfigDir: '/etc/apache2/sites-dynamic',
buildPath: `/var/dynamic/cars-branches`,
stageDomain: 'stage-v2.ksl.com',
testDomain: 'cars.test.ksl.com',
stageDocRoot: '',
apacheLogDir: '/var/log/apache2'
};