This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-config-example.js
95 lines (86 loc) · 2.17 KB
/
deploy-config-example.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
var secrets = require('./secrets.js');
var s3Credential = {
accessKeyId: secrets.s3.accessKeyId,
secretAccessKey: secrets.s3.secretAccessKey,
params: {
Bucket: 's3-assets'
}
};
var googleCloudCredential = {
projectId: secrets.gcloud.projectId,
keyFilename: secrets.gcloud.keyFilename,
params: {
Bucket: 'cloudstorage-assets'
}
};
var config = {
frontline: {
url: 'https://example.com/frontline/deploy',
authToken: secrets.frontline.authToken,
indexPath: 'dist/index.html',
},
googleCloud: {
// Let's stick with single Gcloud bucket for now
development: {
credentials: googleCloudCredential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
staging: {
credentials: googleCloudCredential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
me: {
credentials: googleCloudCredential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
production: {
credentials: googleCloudCredential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
}
},
s3: {
// Let's stick with single S3 bucket for now
development: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
staging: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
me: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
},
production: {
credentials: s3Credential,
dirname: '/development/assets',
assetsPath: 'dist/assets/*',
}
},
slack: {
staging: {
url: 'https://staging.example.com',
notifyWebHook: 'https://hooks.slack.com/services/XXXXYYYY/ZZZZUUUUU/asdjLJFHLFJKHLDJKFHDdfdh',
},
production: {
url: 'https://www.example.com',
notifyWebHook: 'https://hooks.slack.com/services/ZZZZYYYY/ZZZZTTTTT/asdjLJFHLFJKHLDJKFHDdfdh',
},
},
git: {
staging: {
url: 'https://staging.example.com',
remote: 'origin',
abbrev: 7,
}
},
};
module.exports = config;