forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
24 lines (24 loc) · 934 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--privileged', 'linuxkit/binfmt:v0.7']
id: 'initialize-qemu'
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'create', '--name', 'mybuilder']
id: 'create-builder'
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'use', 'mybuilder']
id: 'select-builder'
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'inspect', '--bootstrap']
id: 'show-target-build-platforms'
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'build', '--platform', '$_DOCKER_BUILDX_PLATFORMS', '-t', 'gcr.io/$PROJECT_ID/jx-boot:$_VERSION', '-f', 'Dockerfile-boot', '--build-arg', 'VERSION=$_VERSION', '--push', '.']
id: 'build-multi-architecture-container-image'
options:
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
machineType: 'N1_HIGHCPU_8'
diskSizeGb: 200
substitutions:
_DOCKER_BUILDX_PLATFORMS: 'linux/amd64,linux/arm64'
timeout: 3600s