From 6fde80d3e36dd2f80121da103bc8846587a90aaa Mon Sep 17 00:00:00 2001 From: georg Date: Mon, 20 Mar 2023 14:53:56 +0000 Subject: [PATCH] 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. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) 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 @@ variables: CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images + GIT_DEPTH: "5" GIT_STRATEGY: clone stages: