@docupace/pipeline 1.0.49 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/next/config.js +36 -0
package/package.json
CHANGED
package/src/next/config.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import semver from 'semver';
|
|
2
|
+
|
|
1
3
|
export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
|
|
2
4
|
|
|
5
|
+
const UI_MONO_VERSION = '1.4.0-alpha.0';
|
|
6
|
+
|
|
3
7
|
export const environmentConfig = {
|
|
4
8
|
dev: {
|
|
5
9
|
newUrl: (site) => `https://${site}.dev.dpai.tech`,
|
|
@@ -36,15 +40,47 @@ export const environmentConfig = {
|
|
|
36
40
|
export const appInfo = {
|
|
37
41
|
'graphql-server': {
|
|
38
42
|
repositoryName: 'docupace-graphql-server',
|
|
43
|
+
imageName: 'docupace-graphql-server',
|
|
39
44
|
deployAttributes: [
|
|
40
45
|
'image.tag',
|
|
41
46
|
'graphqlServer.siteConfigRemoteBranch',
|
|
42
47
|
'graphqlServer.standardConfigRemoteBranch',
|
|
43
48
|
],
|
|
44
49
|
},
|
|
50
|
+
cc: {
|
|
51
|
+
repositoryName: 'docupace-ui-main',
|
|
52
|
+
imageName: 'cc-ui-app',
|
|
53
|
+
deployAttributes: ['image.tag'],
|
|
54
|
+
getAppRevision: (config) => {
|
|
55
|
+
const version = config.image.tag.slice(1);
|
|
56
|
+
return 'cc-ui-app@' + version;
|
|
57
|
+
},
|
|
58
|
+
},
|
|
45
59
|
ui: {
|
|
46
60
|
repositoryName: 'docupace-ui-main',
|
|
61
|
+
imageName: 'enterprise-ui-app',
|
|
47
62
|
deployAttributes: ['image.tag'],
|
|
63
|
+
getAppRevision: (config) => {
|
|
64
|
+
const tag = config.image.tag;
|
|
65
|
+
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
66
|
+
if (semver.gt(version, UI_MONO_VERSION)) {
|
|
67
|
+
return 'enterprise-ui-app@' + version;
|
|
68
|
+
} else {
|
|
69
|
+
return tag;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
updateConfigFunction: (config) => {
|
|
73
|
+
if (config.image.repository.endsWith('/docupace-ui-main')) {
|
|
74
|
+
const tag = config.image.tag;
|
|
75
|
+
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
76
|
+
if (semver.gt(version, UI_MONO_VERSION)) {
|
|
77
|
+
const parts = config.image.repository.split('/');
|
|
78
|
+
parts[2] = 'enterprise-ui-app';
|
|
79
|
+
config.image.repository = parts.join('/');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return config;
|
|
83
|
+
},
|
|
48
84
|
},
|
|
49
85
|
};
|
|
50
86
|
|