@docupace/pipeline 1.0.131 → 1.0.132
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 +9 -2
package/package.json
CHANGED
package/src/next/config.js
CHANGED
|
@@ -4,6 +4,13 @@ export const environments = ['dev', 'qa', 'uat', 'stage', 'prod'];
|
|
|
4
4
|
|
|
5
5
|
const UI_MONO_VERSION = '1.4.0-alpha.0';
|
|
6
6
|
|
|
7
|
+
// Non-release deploys (e.g. `build-<BITBUCKET_BUILD_NUMBER>` tags, see
|
|
8
|
+
// getDeployTag) aren't valid semver and are always cut from the current,
|
|
9
|
+
// already-migrated mono repo, so treat anything that doesn't parse as
|
|
10
|
+
// semver as newer than the split rather than letting semver.gt throw.
|
|
11
|
+
const isUiMonoVersion = (version) =>
|
|
12
|
+
semver.valid(version) ? semver.gt(version, UI_MONO_VERSION) : true;
|
|
13
|
+
|
|
7
14
|
export const environmentConfig = {
|
|
8
15
|
dev: {
|
|
9
16
|
newUrl: (site) => `https://${site}.dev.dpai.tech`,
|
|
@@ -86,7 +93,7 @@ export const appInfo = {
|
|
|
86
93
|
getAppRevision: (config) => {
|
|
87
94
|
const tag = config.image.tag;
|
|
88
95
|
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
89
|
-
if (
|
|
96
|
+
if (isUiMonoVersion(version)) {
|
|
90
97
|
return 'enterprise-ui-app@' + version;
|
|
91
98
|
} else {
|
|
92
99
|
return tag;
|
|
@@ -96,7 +103,7 @@ export const appInfo = {
|
|
|
96
103
|
if (config.image.repository.endsWith('/docupace-ui-main')) {
|
|
97
104
|
const tag = config.image.tag;
|
|
98
105
|
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
99
|
-
if (
|
|
106
|
+
if (isUiMonoVersion(version)) {
|
|
100
107
|
const parts = config.image.repository.split('/');
|
|
101
108
|
parts[2] = 'enterprise-ui-app';
|
|
102
109
|
config.image.repository = parts.join('/');
|