From fc9d929137be6b4698c85d508b0e4dd629e2c59f Mon Sep 17 00:00:00 2001 From: Vimal Kumar <102946997+vimal-knoldus@users.noreply.github.com> Date: Sun, 24 Sep 2023 10:02:40 +0530 Subject: [PATCH] Update az-svc-deployment.sh --- az-svc-deployment.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/az-svc-deployment.sh b/az-svc-deployment.sh index e6dcc414..a0ed50b8 100644 --- a/az-svc-deployment.sh +++ b/az-svc-deployment.sh @@ -16,6 +16,7 @@ echo "--------docker build done, docker push---------------" sudo docker push ntdemocontainerregistry.azurecr.io/"$SERVICE_NAME":"$GITHUB_SHA" echo "--------pushed docker image, deploy to aks cluster--------------------------" +sudo az login --service-principal -u 4535b4bf-5f2a-4d46-9f61-f5889ba6592a -p Dan8Q~u3Wg~yK_Zw8MzqUgkXbYuKW-DoHGwnucwg --tenant 17742d94-229e-4be7-b2a9-75ba757f345b sudo az aks get-credentials --resource-group "$RESOURCE_GROUP_NAME" --name "$AKS_CLUSTER" # setup kustomize curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64