From e23214f56f6a57dd27e0e3932063d8042fbc14ef Mon Sep 17 00:00:00 2001 From: vimal-knoldus Date: Mon, 25 Sep 2023 17:59:43 +0530 Subject: [PATCH] Update azure deployment file --- az-svc-deployment.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/az-svc-deployment.sh b/az-svc-deployment.sh index 435d165b..17d78ccd 100644 --- a/az-svc-deployment.sh +++ b/az-svc-deployment.sh @@ -29,6 +29,10 @@ echo "---------------set docker image for kustomize-------------------" ./kustomize edit set image ntdemocontainerregistry.azurecr.io/IMAGE:TAG=ntdemocontainerregistry.azurecr.io/"$SERVICE_NAME":"$GITHUB_SHA" echo "---------------deploy through kubectl------------------" # deploy through kubectl +echo "----Home dir-----" +echo $HOME +mkdir -p $HOME/.kube +sudo cp -i /home/anshuman/.kube/config $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config ./kustomize build . | kubectl apply -f - kubectl rollout status deployment/"$DEPLOYMENT_NAME"