Commit 6d5bc384 authored by Noel Alonso's avatar Noel Alonso
Browse files

Cambia forma de dividir comandos largos

parent 6cbc3e82
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -172,16 +172,16 @@ stages:
        -e ES_DISCOVERY_ZEN_PING_UNICAST_HOSTS \
        -e ES_XPACK_SECURITY_ENABLED \
        ${ELASTICSEARCH_IMAGE_NAME}:${ELASTICSEARCH_IMAGE_TAG};
    - >
      HEALTH_CHECK_URL="${ELASTIC_HOSTS}:${ELASTIC_PORT}/_cat/health?h=status";
      RESPONSE="";
      until [ "$RESPONSE" = "green" ];
    - |
      HEALTH_CHECK_URL="${ELASTIC_HOSTS}:${ELASTIC_PORT}/_cat/health?h=status"
      RESPONSE=""
      until [ "$RESPONSE" = "green" ]
      do
        RESPONSE="$(curl --silent -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" \"${HEALTH_CHECK_URL}\")";
        echo "Waiting for elasticsearch server, remaining attempts...";
        sleep 5;
      done;
      echo $?;
        RESPONSE="$(curl --silent -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" \"${HEALTH_CHECK_URL}\")"
        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 \