@leverege/build-tools 2.67.3-beta.4 → 2.67.3-beta.6

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": "@leverege/build-tools",
3
- "version": "2.67.3-beta.4",
3
+ "version": "2.67.3-beta.6",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/Docker.mjs CHANGED
@@ -175,7 +175,7 @@ const validateCloudBuildBucket = async ( artifactProject ) => {
175
175
 
176
176
  const buildContainerImage = async ( {
177
177
  artifactProject, artifactRegistry, containerName,
178
- imageVersion, imagePlatform, isNpmWorkspace, options
178
+ imageVersion, isNpmWorkspace, options
179
179
  } ) => {
180
180
  const buildWorkspace = './build/workspace' // passed to Cloud Build
181
181
  const imageName = `${artifactRegistry}/images/${containerName}`
@@ -219,7 +219,7 @@ const buildContainerImage = async ( {
219
219
  // build the cloudbuild.yaml from the handlebars template
220
220
  const cloudBuildFile = './build/cloudbuild.yaml'
221
221
  const cbst = handlebars.compile( cloudBuildSteps, { noEscape : true } )
222
- const cbs = cbst( { artifactProject, artifactRegistry, imageName, imageVersion, imageInfoTag, imagePlatform } )
222
+ const cbs = cbst( { artifactProject, artifactRegistry, imageName, imageVersion, imageInfoTag, } )
223
223
  fs.writeFileSync( cloudBuildFile, cbs )
224
224
 
225
225
  // build up the cloud build command and options
package/src/DockerPy.mjs CHANGED
@@ -161,8 +161,8 @@ async function validateCloudBuildBucket( artifactProject ) {
161
161
  }
162
162
 
163
163
  async function buildContainerImage( {
164
- artifactProject, artifactRegistry, containerName,
165
- imageVersion, isNpmWorkspace, options
164
+ artifactProject, artifactRegistry, containerName,
165
+ imageVersion, imagePlatform, isNpmWorkspace, options
166
166
  } ) {
167
167
  const buildWorkspace = './build/workspace' // passed to Cloud Build
168
168
  const imageName = `${artifactRegistry}/images/${containerName}`
@@ -195,7 +195,7 @@ async function buildContainerImage( {
195
195
  // build the cloudbuild.yaml from the handlebars template
196
196
  const cloudBuildFile = './build/cloudbuild.yaml'
197
197
  const cbst = handlebars.compile( cloudBuildSteps, { noEscape : true } )
198
- const cbs = cbst( { artifactProject, artifactRegistry, imageName, imageVersion, imageInfoTag, } )
198
+ const cbs = cbst( { artifactProject, artifactRegistry, imageName, imageVersion, imageInfoTag, imagePlatform } )
199
199
  fs.writeFileSync( cloudBuildFile, cbs )
200
200
 
201
201
  // build up the cloud build command and options
@@ -97,7 +97,6 @@ if ( semver.lt( semver.coerce( repoDescr.buildToolsVersion ), minimumBuildToolsV
97
97
  const dockerInfo = await docker.generateDockerfile( {
98
98
  regvers : repoDescr.packageVersion,
99
99
  imageBase : repoDescr.closestPackageJson.leverege?.imageBase,
100
- imagePlatform : repoDescr.closestPackageJson.leverege?.imagePlatform || 'linux/amd64',
101
100
  buildEnv : repoDescr.closestPackageJson.leverege?.buildEnv || 'alpine',
102
101
  nodeimage : repoDescr.closestPackageJson.leverege?.nodeimg, // left as nodeimg in package.json for backwards compat
103
102
  } )
@@ -213,7 +212,6 @@ log( `
213
212
  ${chalk.green.bold( 'Build Information:' )}
214
213
  Container: ${chalk.green.bold( containerName )}
215
214
  Version: ${chalk.green.bold( imageVersion )} ${tagInfo}
216
- Platform: ${chalk.green.bold( repoDescr.imagePlatform )}
217
215
  Registry: ${chalk.green.bold( artifactRegistry )}
218
216
  Image Folder: ${chalk.yellow.bold( registryFolder )}
219
217
  Monorepo: ${chalk.green.bold( repoDescr.isMonoRepo )}
@@ -8,7 +8,8 @@ steps:
8
8
 
9
9
  - name: 'gcr.io/cloud-builders/docker'
10
10
  args:
11
- - 'build'
11
+ - 'buildx'
12
+ - 'build'
12
13
  - '--platform={{imagePlatform}}'
13
14
  - '--network=cloudbuild'
14
15
  - '-t'