Commit 33bf34ff authored by Noel Alonso's avatar Noel Alonso
Browse files

Controla errores al hacer curl

parent 404c14b9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -177,12 +177,10 @@ stages:
      RESPONSE="";
      until [ "$RESPONSE" = "green" ];
      do
        echo "HEALTH_CHECK";
        RESPONSE="$(curl -sS -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" ${HEALTH_CHECK_URL})";
        RESPONSE="$(curl -sS -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" ${HEALTH_CHECK_URL} 2>&1 || :)";
        echo "Waiting for elasticsearch server, remaining attempts...";
        sleep 5;
      done;
      echo $?
    - >
      docker login ${GITLAB_REGISTRY_HOST} -u ${CI_DEPLOY_USER} -p ${CI_DEPLOY_PASSWORD};
      docker run -d --rm --name schema-es \