@docupace/pipeline 1.0.0-alpha.50 → 1.0.0-alpha.52
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/deploy.js +3 -3
package/package.json
CHANGED
package/src/next/deploy.js
CHANGED
|
@@ -84,14 +84,14 @@ export async function writeDeployConfig(repoPath, deployConfigFilePath, deployCo
|
|
|
84
84
|
* @param {string} site - The site name.
|
|
85
85
|
*/
|
|
86
86
|
|
|
87
|
-
function getDeployTag() {
|
|
88
|
-
const gitTag = $`git tag --points-at HEAD | grep '^v' | head -n 1)
|
|
87
|
+
async function getDeployTag() {
|
|
88
|
+
const gitTag = (await $`git tag --points-at HEAD | grep '^v' | head -n 1`).stdout.trim()
|
|
89
89
|
const deployTag = gitTag || `build-${process.env.BITBUCKET_BUILD_NUMBER}`;
|
|
90
90
|
return deployTag;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export async function deployTemplate(site) {
|
|
94
|
-
const deployTag = getDeployTag();
|
|
94
|
+
const deployTag = await getDeployTag();
|
|
95
95
|
console.log(`Deploying standard template for site: ${site}`);
|
|
96
96
|
console.log(`Using deployment tag: ${deployTag}`);
|
|
97
97
|
const { repoPath, deployConfigFilePath, deployConfig } = await readDeployConfig('graphql', site);
|