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"