2020-07-08 04:01:53 +00:00
|
|
|
timeout: 7200s
|
2020-06-23 23:17:16 +00:00
|
|
|
options:
|
|
|
|
substitution_option: ALLOW_LOOSE
|
|
|
|
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
|
|
|
|
machineType: N1_HIGHCPU_32
|
|
|
|
steps:
|
2020-06-25 18:37:10 +00:00
|
|
|
- name: gcr.io/k8s-testimages/gcb-docker-gcloud:v20200619-68869a4
|
2020-06-23 23:17:16 +00:00
|
|
|
entrypoint: bash
|
|
|
|
env:
|
|
|
|
- DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
- TAG=$_GIT_TAG
|
|
|
|
- BASE_REF=$_PULL_BASE_REF
|
|
|
|
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
|
2020-06-25 18:37:10 +00:00
|
|
|
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
|
|
|
|
# set the home to /root explicitly to if using docker buildx
|
|
|
|
- HOME=/root
|
2020-06-23 23:17:16 +00:00
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
gcloud auth configure-docker \
|
2020-06-25 20:09:37 +00:00
|
|
|
&& make push
|
2020-06-23 23:17:16 +00:00
|
|
|
substitutions:
|
|
|
|
_GIT_TAG: "12345"
|
|
|
|
_PULL_BASE_REF: "master"
|