message: refactor: fail builds early for invalid docker-compose files
diff: @@ -186,7 +186,7 @@ set +ex
  ### RUN docker compose config check against the provided docker-compose file
  ### use the `build-validate` built in validater to run over the provided docker-compose file
  ##############################################
  -dccOutput=$(bash -c 'build-validate validate docker-compose --docker-compose '${DOCKER_COMPOSE_YAML}' --ignore-non-string-key-errors=false; exit $?' 2>&1)
  +dccOutput=$(bash -c 'build-validate validate docker-compose --docker-compose '${DOCKER_COMPOSE_YAML}'; exit $?' 2>&1)
  dccExit=$?
  echo "docker-compose validate exit code ${dccExit}: ${dccOutput}"
  @@ -194,7 +194,17 @@ if [ "${dccExit}" != "0" ]; then
  currentStepEnd="$(date +"%Y-%m-%d %H:%M:%S")"
  patchBuildStep "${buildStartTime}" "${previousStepEnd}" "${currentStepEnd}" "${NAMESPACE}" "dockerComposeValidationError" "Docker Compose Validation Error"
  previousStepEnd=${currentStepEnd}
  - # the warning message is displayed at the end of the build
  + echo "
  +##############################################
  +Warning!
  +There are issues with your docker compose file that lagoon uses that should be fixed.
  +You can run docker compose config locally to check that your docker-compose file is valid.
  +##############################################
  +"
  + echo ${dccOutput}
  + echo "
  +##############################################"
  + exit 1
  fi
  set -ex
  @@ -1473,24 +1483,3 @@ if [ "$(featureFlag INSIGHTS)" = enabled ]; then
  previousStepEnd=${currentStepEnd}
  fi
  set -x
  -
  -set +x
  -##############################################
  -### RUN docker compose config check against the provided docker-compose file
  -### use the `build-deploy-tool` built in validater to run over the provided docker-compose file
  -##############################################
  -if [ "${dccExit}" != "0" ]; then
  - # if the docker-compose validation step fails, this warning is show
  - echo "
  -##############################################
  -Warning!
  -There are issues with your docker compose file that lagoon uses that should be fixed.
  -This does not currently prevent builds from proceeding, but future versions of Lagoon *will* be more strict on issues shown here.
  -You can run docker compose config locally to check that your docker-compose file is valid.
  -##############################################
  -"
  - echo ${dccOutput}
  - echo "
  -##############################################"
  -fi
  -set -x
  \ No newline at end of file
  