-
Daniel Scholl authoredDaniel Scholl authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
README.md 673 B
Pipeline Support Commands
AZURE_SERVICE="legal"
REPO_BRANCH="master"
TAG="latest"
PARTIAL=${REPO_BRANCH/\//-}
BRANCH=${PARTIAL/./-}
echo "--set image.branch=$BRANCH --set image.tag=$TAG"
# Remove the Service
kubectl delete deployment osdu-gitlab-$AZURE_SERVICE
kubectl delete service osdu-gitlab-$AZURE_SERVICE
# 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