mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
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 <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
75d2be7da5
commit
2532c0db0c
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
image: registry.gitlab.com/samba-team/samba:latest
|
image: registry.gitlab.com/samba-team/samba:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: fetch
|
||||||
|
GIT_DEPTH: "3"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo "Build starting (preparing swap)..."
|
- echo "Build starting (preparing swap)..."
|
||||||
- if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
|
- if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user