Loading templates/gitlab-ci-golang.yml +7 −1 Original line number Diff line number Diff line Loading @@ -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} Loading Loading
templates/gitlab-ci-golang.yml +7 −1 Original line number Diff line number Diff line Loading @@ -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} Loading