Commit d706e441 authored by Adrian DC's avatar Adrian DC
Browse files

ci(gitlab-ci): validate host network interfaces support

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 3964c8f5
Loading
Loading
Loading
Loading
Loading
+12
Changes for .gitlab-ci.yml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -862,6 +862,18 @@ pages:
      if [ ! -z "${CI_LOCAL:-}" ] && [ ! "${CI_JOB_NAME:-}" = 'pdf' ]; then
        export MKDOCS_EXPORTER_PDF_ENABLED='false'
      fi
    # Validate network interfaces
    - |
      if [ ! -z "${CI_LOCAL:-}" ] && hostname -I | tr ' ' '\n' | grep '.' | wc -l | grep -q '^0$\|^1$'; then
        set +x
        echo ' '
        echo -n ' [INFO] Network addresses: '
        hostname -I
        echo ' '
        echo ' [ERROR] Incompatible local CI version detected or missing host network interfaces...'
        echo ' '
        exit 1
      fi
    # Prepare documentation
    - |
      if [ ! -z "${CI_LOCAL:-}" ]; then