Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
fix gcloud build script (#1408)
Browse files Browse the repository at this point in the history
* fix gcloud build script

* get PROJECT using gcloud config
  • Loading branch information
mandarjog authored Oct 12, 2017
1 parent 9135949 commit a724998
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/gcloud_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -ex

PROJECT=$(gcloud config get-value project)

gcloud docker --authorize-only

if [ -z $DOCKER_TAG ]
Expand All @@ -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

0 comments on commit a724998

Please sign in to comment.