Skip to content
Snippets Groups Projects
README.md 551 B
Newer Older
harshit aggarwal's avatar
harshit aggarwal committed
# Pipeline Support Commands

```bash
Komal Makkar's avatar
Komal Makkar committed
AZURE_SERVICE="register"
harshit aggarwal's avatar
harshit aggarwal committed
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
```