kopia lustrzana https://github.com/espressif/esp-idf
ci: use LOCAL_GIT_MIRROR in docker build job, if set
When the build runner has a local git mirror configured via LOCAL_GIT_MIRROR variable, use that mirror when cloning IDF insider the docker build job. Follows similar logic for LOCAL_GITLAB_HTTPS_HOST, which is used for geo nodes.pull/7966/head
rodzic
f41494f5a4
commit
78d83645b8
|
@ -340,6 +340,7 @@ build_docker:
|
|||
script:
|
||||
- export LOCAL_CI_REPOSITORY_URL=$CI_REPOSITORY_URL
|
||||
- if [ -n "$LOCAL_GITLAB_HTTPS_HOST" ]; then export LOCAL_CI_REPOSITORY_URL="https://gitlab-ci-token:${CI_JOB_TOKEN}@${LOCAL_GITLAB_HTTPS_HOST}/${CI_PROJECT_PATH}"; fi
|
||||
- if [ -n "$LOCAL_GIT_MIRROR" ]; then export LOCAL_CI_REPOSITORY_URL="${LOCAL_GIT_MIRROR}/${CI_PROJECT_PATH}"; fi
|
||||
- echo "Using repository at $LOCAL_CI_REPOSITORY_URL"
|
||||
- export DOCKER_BUILD_ARGS="--build-arg IDF_CLONE_URL=${LOCAL_CI_REPOSITORY_URL} --build-arg IDF_CLONE_BRANCH_OR_TAG=${CI_COMMIT_REF_NAME} --build-arg IDF_CHECKOUT_REF=${CI_COMMIT_TAG:-$PIPELINE_COMMIT_SHA}"
|
||||
# Build
|
||||
|
|
Ładowanie…
Reference in New Issue