From b81a6fc4a7392109783ffcd96bac1084037075e7 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 18 Jul 2023 23:54:26 +0800 Subject: [PATCH] .gitlab-ci.yml: try using a proxy with git clone --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39c927f..1243e53 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,6 +37,7 @@ build: - apk add --no-cache --upgrade bash coreutils # fetch dockerfile - BRANCH_NAME=$(echo ${CI_COMMIT_TAG} | sed 's/\-/\+/') && echo ${BRANCH_NAME} + - if [ ! -z "$httpProxy" ]; then git config --global http.proxy $httpProxy; fi - git clone -b ${BRANCH_NAME} --depth=1 https://gitlab.com/gitlab-org/omnibus-gitlab.git - cd ./omnibus-gitlab/docker # write RELEASE