Commit ec1b9d4e authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '20-git-not-found' into 'master'

fix: add a check of git command

Closes #20

See merge request to-be-continuous/golang!38
parents 4abf1c3f 31141e52
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}