From ff073e3f994d1935a15c604d41416c74aeecb8d9 Mon Sep 17 00:00:00 2001 From: kundan59 Date: Fri, 8 Sep 2023 23:56:15 +0530 Subject: [PATCH] update deploy script --- service-deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service-deploy.sh b/service-deploy.sh index c52f1f35..7f958759 100644 --- a/service-deploy.sh +++ b/service-deploy.sh @@ -17,8 +17,12 @@ do "order-service") cd order-service || continue mvn clean install || continue + sudo su + echo "packaging done, start docker build" sudo docker build -f Dockerfile --tag us.gcr.io/$PROJECT_ID/orderservice:latest . || continue + echo "docker build done, docker push" sudo docker push gcr.io/$PROJECT_ID/orderservice:latest || continue + echo "pushed docker image" esac