Skip to content

Commit

Permalink
Update azure deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
vimal-knoldus committed Sep 25, 2023
1 parent 58b3588 commit 0cde823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions az-svc-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ 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
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/"$DEPLOYMENT_NAME"
kubectl get services -o wide
Expand Down

0 comments on commit 0cde823

Please sign in to comment.