Skip to content

Commit

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

PROJECT_ID="$1"
for project in $(cat projects-deploy.txt)
do
:
echo "1111111"
echo $PROJECT_ID
case $project in
# case 1 build and deploy package common

Expand All @@ -19,9 +16,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:$GITHUB_SHA . || continue
sudo docker build -f Dockerfile --tag us.gcr.io/boreal-gravity-396810/orderservice:$GITHUB_SHA . || continue
echo "--------docker build done, docker push---------------"
sudo docker push us.gcr.io/"$PROJECT_ID"/orderservice:$GITHUB_SHA
sudo docker push us.gcr.io/boreal-gravity-396810/orderservice:$GITHUB_SHA
echo "--------pushed docker image--------------------------"

esac
Expand Down

0 comments on commit 7c901f9

Please sign in to comment.