From e0d98a110741bd1ac334647ac656bab9386407c0 Mon Sep 17 00:00:00 2001 From: kundan59 Date: Sun, 10 Sep 2023 14:30:49 +0530 Subject: [PATCH] update deploy script22 --- service-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service-deploy.sh b/service-deploy.sh index 1ceafdb5..c4cfd92b 100644 --- a/service-deploy.sh +++ b/service-deploy.sh @@ -17,9 +17,9 @@ do cd order-service || continue mvn clean install || continue echo "---------packaging done, start docker build-----------" - sudo docker build -f Dockerfile --tag gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" . || continue + docker build -f Dockerfile --tag gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" . || continue echo "--------docker build done, docker push---------------" - sudo docker push gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" + docker push gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" echo "--------pushed docker image--------------------------" esac