.gitlab-ci.yml: try using a proxy with git clone

This commit is contained in:
Christopher 2023-07-18 23:54:26 +08:00
parent 00ea0afeb2
commit b81a6fc4a7

View File

@ -37,6 +37,7 @@ build:
- apk add --no-cache --upgrade bash coreutils - apk add --no-cache --upgrade bash coreutils
# fetch dockerfile # fetch dockerfile
- BRANCH_NAME=$(echo ${CI_COMMIT_TAG} | sed 's/\-/\+/') && echo ${BRANCH_NAME} - 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 - git clone -b ${BRANCH_NAME} --depth=1 https://gitlab.com/gitlab-org/omnibus-gitlab.git
- cd ./omnibus-gitlab/docker - cd ./omnibus-gitlab/docker
# write RELEASE # write RELEASE