@docupace/pipeline 1.0.53 → 1.0.54

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/next/deploy.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -330,9 +330,9 @@ export async function deployTemplate(env, site, deployTag) {
330
330
  export async function deployAppWithTag(application, env, site, deployTag) {
331
331
  console.log(`Deploying application: ${application} for site: ${site}`);
332
332
  console.log(`Using deployment tag: ${deployTag}`);
333
+ const appDetails = appInfo[application];
333
334
 
334
335
  if (env !== 'dev') {
335
- const appDetails = appInfo[application];
336
336
  await copy2(
337
337
  appDetails.repositoryName,
338
338
  'dev',
@@ -345,6 +345,18 @@ export async function deployAppWithTag(application, env, site, deployTag) {
345
345
  const { repoPath, deployConfigFilePath, deployConfig } =
346
346
  await cloneAndReadDeployConfig(application, env, site);
347
347
  const updatedConfigData = setTag(deployConfig, deployTag);
348
+
349
+ const {
350
+ deployConfig: toDeployAppConfig,
351
+ deployConfigFilePath: toDeployAppConfigFilePath,
352
+ } = await readDeployConfig(application, env, site, 'app');
353
+
354
+ toDeployAppConfig.revision = appDetails.getAppRevision
355
+ ? appDetails.getAppRevision(updatedConfigData)
356
+ : updatedConfigData.image.tag;
357
+
358
+ writeDeployConfig(toDeployAppConfigFilePath, toDeployAppConfig);
359
+
348
360
  await writeAndPushDeployConfig(
349
361
  repoPath,
350
362
  deployConfigFilePath,