diff --git a/service-deploy.sh b/service-deploy.sh index 25dc3cab..522e3ec9 100644 --- a/service-deploy.sh +++ b/service-deploy.sh @@ -1,7 +1,6 @@ #!/bin/bash PROJECT_ID="$(gcloud config get-value project)" -echo "$1" for project in $(cat projects-deploy.txt) do : @@ -18,9 +17,9 @@ do cd order-service || continue mvn clean install || continue echo "---------packaging done, start docker build-----------" - sudo docker build -f Dockerfile --tag us.gcr.io/$PROJECT_ID/orderservice . || continue + sudo docker build -f Dockerfile --t us.gcr.io/"$PROJECT_ID"/orderservice . || continue echo "--------docker build done, docker push---------------" - sudo docker push us.gcr.io/$PROJECT_ID/orderservice + sudo docker push us.gcr.io/"$PROJECT_ID"/orderservice echo "--------pushed docker image--------------------------" esac