@docupace/pipeline 1.0.39-matttest.34 → 1.0.39-matttest.36
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 +2 -1
- package/src/next/cli.js +1 -1
- package/src/next/config.js +11 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docupace/pipeline",
|
|
3
|
-
"version": "1.0.39-matttest.
|
|
3
|
+
"version": "1.0.39-matttest.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"js-yaml": "^4.1.0",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"openai": "^4.76.3",
|
|
30
|
+
"semver": "^7.7.2",
|
|
30
31
|
"zod": "^3.24.1",
|
|
31
32
|
"zx": "^8.3.0"
|
|
32
33
|
},
|
package/src/next/cli.js
CHANGED
|
@@ -136,7 +136,7 @@ program
|
|
|
136
136
|
.description('Deploy an application for a specific site')
|
|
137
137
|
.action(async (tag, application) => {
|
|
138
138
|
const deployTag = await getDeployTag(tag);
|
|
139
|
-
const version = deployTag.split('@')[1];
|
|
139
|
+
const version = 'v' + deployTag.split('@')[1];
|
|
140
140
|
const { env, site } = await getDefaultDeploySite(version);
|
|
141
141
|
await deployAppWithTag(application, env, site, version);
|
|
142
142
|
});
|
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`,
|
|
@@ -42,9 +46,13 @@ export const appInfo = {
|
|
|
42
46
|
deployAttributes: ['image.tag'],
|
|
43
47
|
updateConfigFunction: (config) => {
|
|
44
48
|
if (config.image.repository.endsWith('/docupace-ui-main')) {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
const tag = config.image.tag;
|
|
50
|
+
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
51
|
+
if (semver.gt(version, UI_MONO_VERSION)) {
|
|
52
|
+
const parts = config.image.repository.split('/');
|
|
53
|
+
parts[2] = 'enterprise-ui-app';
|
|
54
|
+
config.image.repository = parts.join('/');
|
|
55
|
+
}
|
|
48
56
|
}
|
|
49
57
|
return config;
|
|
50
58
|
},
|