From d9053f3855cf4952a694571186f99bdaa742c808 Mon Sep 17 00:00:00 2001 From: kundan59 Date: Sun, 10 Sep 2023 22:39:25 +0530 Subject: [PATCH] kubectl deployement --- service-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service-deploy.sh b/service-deploy.sh index 26688dd9..89351d17 100644 --- a/service-deploy.sh +++ b/service-deploy.sh @@ -20,8 +20,9 @@ do docker build -f Dockerfile --tag gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" . echo "--------docker build done, docker push---------------" docker push gcr.io/"$PROJECT_ID"/orderservice:"$GITHUB_SHA" - echo "--------pushed docker image--------------------------" + echo "--------pushed docker image, deploy to gke cluster--------------------------" + gcloud container clusters get-credentials "order-service-gke" --region us-east1 # setup kustomize curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 chmod u+x ./kustomize