From a7249982072e4891662c82336ee4576c76f6619c Mon Sep 17 00:00:00 2001 From: mandarjog Date: Thu, 12 Oct 2017 16:03:20 -0700 Subject: [PATCH] fix gcloud build script (#1408) * fix gcloud build script * get PROJECT using gcloud config --- docker/gcloud_build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/gcloud_build.sh b/docker/gcloud_build.sh index 26b6c950c..1d2da0ca7 100755 --- a/docker/gcloud_build.sh +++ b/docker/gcloud_build.sh @@ -2,6 +2,8 @@ set -ex +PROJECT=$(gcloud config get-value project) + gcloud docker --authorize-only if [ -z $DOCKER_TAG ] @@ -16,8 +18,5 @@ else bazel --output_base=$BAZEL_OUTBASE run //docker:mixer fi -docker tag //docker:mixer gcr.io/$PROJECT/mixer:$DOCKER_TAG -docker tag gcr.io/$PROJECT/mixer:$DOCKER_TAG gcr.io/$PROJECT/mixer:latest - +docker tag istio/docker:mixer gcr.io/$PROJECT/mixer:$DOCKER_TAG gcloud docker -- push gcr.io/$PROJECT/mixer:$DOCKER_TAG -gcloud docker -- push gcr.io/$PROJECT/mixer:latest