@docupace/pipeline 1.0.0-alpha.51 → 1.0.0-alpha.53
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 +2 -2
package/package.json
CHANGED
package/src/next/deploy.js
CHANGED
|
@@ -4,7 +4,7 @@ import yaml from 'js-yaml';
|
|
|
4
4
|
import { $ } from 'zx';
|
|
5
5
|
|
|
6
6
|
const REPO_NAME = 'gitops-dev';
|
|
7
|
-
const REPO_URL = `https://x-token-auth:${process.env.
|
|
7
|
+
const REPO_URL = `https://x-token-auth:${process.env.GITOPS_DEV_REP_TOKEN}@bitbucket.org/dp-cloud/${REPO_NAME}.git`;
|
|
8
8
|
const GITOPS_BRANCH = 'master';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -85,7 +85,7 @@ export async function writeDeployConfig(repoPath, deployConfigFilePath, deployCo
|
|
|
85
85
|
*/
|
|
86
86
|
|
|
87
87
|
async function getDeployTag() {
|
|
88
|
-
const gitTag = (await $`git tag --points-at HEAD | grep '^v' | head -n 1
|
|
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
|
}
|