@leverege/build-tools 2.67.3-beta.10 → 2.67.3-beta.12
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
|
@@ -273,7 +273,7 @@ if ( willGitTag ) {
|
|
|
273
273
|
await proceed()
|
|
274
274
|
|
|
275
275
|
log( chalk.green.bold( 'Building the Docker Image...' ) )
|
|
276
|
-
await Docker.buildContainerImage( { ...repoDescr, options, imageVersion } )
|
|
276
|
+
await Docker.buildContainerImage( { ...repoDescr, imagePlatformList : [ repoDescr.imagePlatform.split( '/' )[0] ], options, imageVersion } )
|
|
277
277
|
log( chalk.blue.bold( 'Done Building the Docker Image...' ) )
|
|
278
278
|
|
|
279
279
|
if ( willGitTag ) {
|
|
@@ -2,9 +2,12 @@ options:
|
|
|
2
2
|
machineType: E2_HIGHCPU_8
|
|
3
3
|
|
|
4
4
|
steps:
|
|
5
|
+
{{#each imagePlatformList}}
|
|
5
6
|
- name: 'gcr.io/cloud-builders/docker'
|
|
6
7
|
entrypoint: 'bash'
|
|
7
|
-
args: ['-c', 'docker pull --platform={{
|
|
8
|
+
args: ['-c', 'docker pull --platform={{this}} {{imageName}}:latest || exit 0']
|
|
9
|
+
waitFor: ['-']
|
|
10
|
+
{{/each}}
|
|
8
11
|
|
|
9
12
|
- name: 'gcr.io/cloud-builders/docker'
|
|
10
13
|
args: ['buildx', 'create', '--driver', 'docker-container', '--name', 'container', '--driver-opt', 'network=cloudbuild', '--use']
|
|
@@ -13,7 +16,6 @@ steps:
|
|
|
13
16
|
args:
|
|
14
17
|
- 'buildx'
|
|
15
18
|
- 'build'
|
|
16
|
-
- '--network=cloudbuild'
|
|
17
19
|
- '-t'
|
|
18
20
|
- '{{imageName}}:{{imageVersion}}'
|
|
19
21
|
- '--cache-from'
|