@docupace/pipeline 1.0.39-matttest.16 → 1.0.39-matttest.18

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/util.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.39-matttest.16",
3
+ "version": "1.0.39-matttest.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/next/util.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { existsSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { $, nothrow } from 'zx';
4
+ import path from 'path';
4
5
 
5
6
  export function isMonoRepo() {
6
7
  // Check for the presence of turbo.json which indicates a Turborepo monorepo
@@ -79,11 +80,11 @@ export async function buildChangePackages() {
79
80
  }
80
81
  }
81
82
 
82
- export async function dockerBuild(path) {
83
+ export async function dockerBuild(buildPath) {
83
84
  process.env.DOCKER_HOST = '';
84
85
  const imageName = `${process.env.BITBUCKET_REPO_SLUG}:sha-${process.env.GIT_SHA}-withMaps`;
85
86
  console.log(`Building Docker image ${imageName}...`);
86
- await $`docker build --secret id=npm_token,env=DOCUPACE_NPM_TOKEN ${path} --file Dockerfile --target builder --tag ${imageName}`;
87
+ await $`docker build --secret id=npm_token,env=DOCUPACE_NPM_TOKEN . --file ${path.resolve(buildPath, 'Dockerfile')} --target builder --tag ${imageName}`;
87
88
  }
88
89
 
89
90
  export async function setGitInfo() {