From 2532c0db0ce2c189ab6fc96ab5c5e56ce5b17ecd Mon Sep 17 00:00:00 2001 From: Joe Guo Date: Tue, 12 Dec 2017 14:26:07 +1300 Subject: [PATCH] gitlab-ci: add git variable to speed up clone Set GIT_STATEGY to fetch, and GIT_DEPTH to 3. This will speed up cloning for repos. Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef1cddad45b..c6739a5db34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,10 @@ image: registry.gitlab.com/samba-team/samba:latest +variables: + GIT_STRATEGY: fetch + GIT_DEPTH: "3" + before_script: - echo "Build starting (preparing swap)..." - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then