@docupace/pipeline 1.0.29 → 1.0.31
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/connect.js +1 -1
- package/src/next/deploy.js +1 -1
package/package.json
CHANGED
package/src/next/connect.js
CHANGED
|
@@ -47,7 +47,7 @@ async function gitCheckout(repository, destDir, branch = 'master') {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export async function connectClone() {
|
|
50
|
-
const connectFromEnv = connectUIEnvMap[process.env.
|
|
50
|
+
const connectFromEnv = connectUIEnvMap[process.env.FROM_BUILD_ENVIRONMENT];
|
|
51
51
|
const connectToEnv = connectUIEnvMap[process.env.BUILD_ENVIRONMENT];
|
|
52
52
|
if (!vaultToken || !vaultAddr) {
|
|
53
53
|
console.error('Error: VAULT_TOKEN and VAULT_ADDR must be set.');
|
package/src/next/deploy.js
CHANGED
|
@@ -47,7 +47,7 @@ async function updateAndCommitConnectVersion(
|
|
|
47
47
|
// Git commands to stage, commit and push changes
|
|
48
48
|
await $`cd ${connectDeployPath} && git config user.email "gitops@docupace.com"`;
|
|
49
49
|
await $`cd ${connectDeployPath} && git add .`;
|
|
50
|
-
await $`cd ${connectDeployPath} && git commit -m "Update Connect version for ${toSite} in ${toEnv} to ${getComparedVersion}"`;
|
|
50
|
+
await $`cd ${connectDeployPath} && git commit -m "Update Connect version for ${toSite} in ${toEnv} to ${getComparedVersion}" || echo "No changes to commit"`;
|
|
51
51
|
await $`cd ${connectDeployPath} && git push`;
|
|
52
52
|
|
|
53
53
|
console.log('🧹 Cleaning up...');
|