Commit b07c1dab authored by Andreas König's avatar Andreas König

fixed waiting on helm

parent 7fbdb592
Pipeline #12919 passed with stage
in 1 minute and 31 seconds
......@@ -68,6 +68,8 @@ if [ -d "$CHART_DIR" ]; then
elif [ -e "${DEPLOYMENT_YML_FILE}" ]; then
echo "Deploy ${DEPLOYMENT_YML_FILE}"
source <(echo 'kubectl apply -n $KUBE_NAMESPACE -f - <<EOFOFDEPLOYMENTYML'; cat "${DEPLOYMENT_YML_FILE}"; echo EOFOFDEPLOYMENTYML)
echo "Waiting for deployment..."
kubectl rollout status -n "$KUBE_NAMESPACE" -w "deployment/$CI_ENVIRONMENT_SLUG"
else
cat <<EOF | kubectl apply -n $KUBE_NAMESPACE -f -
apiVersion: extensions/v1beta1
......@@ -157,10 +159,9 @@ spec:
serviceName: $CI_ENVIRONMENT_SLUG
servicePort: $CONTAINER_HTTP_PORT
EOF
echo "Waiting for deployment..."
kubectl rollout status -n "$KUBE_NAMESPACE" -w "deployment/$CI_ENVIRONMENT_SLUG"
fi
echo "Waiting for deployment..."
kubectl rollout status -n "$KUBE_NAMESPACE" -w "deployment/$CI_ENVIRONMENT_SLUG"
echo "Application is accessible at: ${CI_ENVIRONMENT_URL}"
echo ""
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