Commit 31141e52 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

fix: add a check of git command

parent 4abf1c3f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -302,7 +302,13 @@ stages:
      - $GO_PROJECT_DIR/.cache/
  before_script:
    - *go-scripts
    - git config --global url.https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}.insteadOf https://${CI_SERVER_HOST}
    - |
      if command -v git > /dev/null
      then
        git config --global url.https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}.insteadOf https://${CI_SERVER_HOST}
      else
        log_warn "If you need to use private repository, you should provide an image with git executable"
      fi
    - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"
    - cd ${GO_PROJECT_DIR}