Skip to content

Commit

Permalink
update deploy script11
Browse files Browse the repository at this point in the history
  • Loading branch information
kundan59 committed Sep 10, 2023
1 parent 3e9d769 commit aed06b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

PROJECT_ID="$(gcloud config get-value project)"
echo "$1"
for project in $(cat projects-deploy.txt)
do
:
Expand All @@ -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
Expand Down

0 comments on commit aed06b9

Please sign in to comment.