@docupace/pipeline 1.0.1-2.ervinsUpdate2 → 1.0.1-2.ervinsUpdate2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.12.ervinsUpdate2",
3
+ "version": "1.0.12.ervinsUpdate2.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -540,7 +540,7 @@ ingress:
540
540
 
541
541
 
542
542
  export async function configureFromSite(fromSite, toSite, fromEnv,toEnv, deployUI, deployGraphQLServer, useNewDomain) {
543
- console.log(`Configuring Auth0 tenants and ArgoCD apps for site: ${toSite} in env: ${env} from site: ${fromSite}`);
543
+ console.log(`Configuring Auth0 tenants and ArgoCD apps for site: ${toSite} in env: ${toEnv} from site: ${fromSite}`);
544
544
  // Common Secrets
545
545
  const commonSecretsPath = getVaultSecretsConfigs(toSite).commonSecretsPath;
546
546
  console.log(`commonSecretsPath => ${commonSecretsPath}`)
@@ -603,7 +603,7 @@ export async function configureFromSite(fromSite, toSite, fromEnv,toEnv, deployU
603
603
  console.log(`Copying Latest UI Image Tag: ${deployUIConfig.image.tag} from site: ${fromSite} to site: ${toSite}`);
604
604
  console.log(`Copying Latest GraphQL Server Image Tag: ${deployGraphQLServerConfig.image.tag} from site: ${fromSite} to site: ${toSite}`);
605
605
 
606
- const envConfig = environmentConfig[env];
606
+ const envConfig = environmentConfig[toEnv];
607
607
 
608
608
  let CORE_URL,
609
609
  SITE_HOST,
@@ -625,14 +625,14 @@ export async function configureFromSite(fromSite, toSite, fromEnv,toEnv, deployU
625
625
  CONNECT_URL = `${oldUrl}_ui`;
626
626
  }
627
627
 
628
- await templateAuth0(SITE_HOST, CORE_API_CONTEXT, env, filePaths, deployUI, deployGraphQLServer, commonSecrets);
628
+ await templateAuth0(SITE_HOST, CORE_API_CONTEXT, toEnv, filePaths, deployUI, deployGraphQLServer, commonSecrets);
629
629
  await importAuth0Templates('./auth0-site-setup/template', auth0Domain, auth0ClientId, auth0ClientSecret);
630
630
 
631
631
  if (deployUI === 'true') {
632
632
  await configureUI(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, toEnv, useNewDomain, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, uiSecretsPath, uiImageTag, repoPathToEnv);
633
633
  }
634
634
 
635
- await configureGraphQLServer(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, env, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, graphqlSecretsPath, graphqlImageTag, graphqlStandardConfigRemoteBranch, repoPathToEnv, commonSecrets);
635
+ await configureGraphQLServer(SITE_HOST, CORE_URL, DOCUPACE_HOST, toSite, toEnv, auth0Domain, auth0ClientId, auth0ClientSecret, auth0Token, graphqlSecretsPath, graphqlImageTag, graphqlStandardConfigRemoteBranch, repoPathToEnv, commonSecrets);
636
636
  await pushDeployConfig(repoPathToEnv, `Config update for ${toSite} from ${fromSite} with UI: ${uiImageTag} and GraphQL: ${graphqlImageTag}`);
637
637
 
638
638
  await initializeAuth0Configuration({
@@ -58,7 +58,7 @@ function log(msg) {
58
58
 
59
59
  export async function connectClone() {
60
60
 
61
-
61
+ console.log("vaultaddr", vaultAddr);
62
62
  if (!vaultToken || !vaultAddr) {
63
63
  console.error("Error: VAULT_TOKEN and VAULT_ADDR must be set.");
64
64
  throw new Error("VAULT_TOKEN and VAULT_ADDR must be set.");