From fac8ca0ffbf03a443ca01c636b1546f51f2c9d0f Mon Sep 17 00:00:00 2001 From: Carlos Panato Date: Thu, 11 Mar 2021 13:39:50 +0100 Subject: [PATCH] images/kubecross: create a REGISTRY substitution to allow registry selection --- images/build/cross/cloudbuild.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/build/cross/cloudbuild.yaml b/images/build/cross/cloudbuild.yaml index fb1f03d35351..36080d31861e 100644 --- a/images/build/cross/cloudbuild.yaml +++ b/images/build/cross/cloudbuild.yaml @@ -17,6 +17,7 @@ steps: - IMAGE_VERSION=$_IMAGE_VERSION - PROTOBUF_VERSION=$_PROTOBUF_VERSION - ETCD_VERSION=$_ETCD_VERSION + - REGISTRY=$_REGISTRY # 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 @@ -37,6 +38,7 @@ substitutions: _IMAGE_VERSION: 'v0.0.0-0' _PROTOBUF_VERSION: '0.0.0' _ETCD_VERSION: 'v0.0.0' + _REGISTRY: 'gcr.io/k8s-staging-build-image' tags: - 'kube-cross' @@ -48,6 +50,7 @@ tags: - ${_IMAGE_VERSION} - ${_PROTOBUF_VERSION} - ${_ETCD_VERSION} +- ${_REGISTRY} images: - 'gcr.io/$PROJECT_ID/kube-cross-amd64:$_IMAGE_VERSION'