Commit b5db3129 authored by Dania Kodeih (Microsoft)'s avatar Dania Kodeih (Microsoft)
Browse files

Merge branch 'patch-3' into 'master'

Adding rollout status check for the service deployment

See merge request osdu/platform/ci-cd-pipelines!132
parents d81b71fe 32fe6c4e
Pipeline #16567 passed with stages
in 18 seconds
......@@ -190,6 +190,7 @@ azure_deploy:
# Install Service
- helm upgrade -i osdu-gitlab-$CI_PROJECT_NAME chart --set image.repository=${AZURE_REGISTRY} --set image.branch=$BRANCH --set image.tag=$TAG
- kubectl rollout status deployment.v1.apps/osdu-gitlab-$CI_PROJECT_NAME -n osdu --timeout=300s
- pod=$(kubectl get pod -n osdu|grep $CI_PROJECT_NAME |tail -1 |awk '{print $1}')
- status=$(kubectl wait -n osdu --for=condition=Ready pod/$pod --timeout=300s)
- if [[ "$status" != *"met"* ]]; then echo "POD didn't start correctly" ; exit 1 ; fi
......@@ -223,3 +224,4 @@ azure_test:
- $AZURE_SKIP_TEST == 'true'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment