summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeorg2023-03-20 14:53:56 +0000
committergeorg2023-03-20 15:11:02 +0000
commit6fde80d3e36dd2f80121da103bc8846587a90aaa (patch)
treee815856a9794a898302edc66565167760d639cd7
parent6c05360afad48d95e889c96e45fe748505fe6665 (diff)
CI: shallow clone repository and limit depth to 5
The previous commit changed the strategy to 'clone', instead of 'fetch' as before. While this fixes permission errors, it is also slower, as an existing checkout of the repository will be ignored. To overcome this, this commit limits the depth to 5.
-rw-r--r--.gitlab-ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ea7bb3..a5136ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
1variables: 1variables:
2 CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images 2 CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images
3 GIT_DEPTH: "5"
3 GIT_STRATEGY: clone 4 GIT_STRATEGY: clone
4 5
5stages: 6stages: