Skip to content
Snippets Groups Projects
Kelly Zhou's avatar
Kelly Zhou authored
abdd2cf1
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Pipeline Support Commands

AZURE_SERVICE="partition"
REPO_BRANCH="master"
TAG="latest"
PARTIAL=${REPO_BRANCH/\//-}
BRANCH=${PARTIAL/./-}

echo "--set image.branch=$BRANCH --set image.tag=$TAG"

# Install the Service
helm upgrade -i osdu-gitlab-$AZURE_SERVICE chart --set image.branch=$BRANCH --set image.tag=$TAG
pod=$(kubectl get pod |grep $AZURE_SERVICE | tail -1 | awk '{print $1}')
status=$(kubectl wait --for=condition=Ready pod/$pod --timeout=60s)
if [[ "$status" != *"met"* ]]; then echo "POD didn't start correctly" ; exit 1 ; fi