From 10d2322e734c7c16bcfbe6fade7153528d5c038c Mon Sep 17 00:00:00 2001 From: Roman Melnikov Date: Wed, 18 Sep 2024 13:35:18 +0200 Subject: [PATCH] gitlab-runner: rename 'preCloneScript' to 'preGetSourcesScript' '--pre-clone-script' configuration option was deprecated in favor of '--pre-get-sources-script'. See https://about.gitlab.com/blog/2023/03/27/changes-to-the-preclonescript. --- modules/services/gitlab-runner.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/gitlab-runner.nix b/modules/services/gitlab-runner.nix index 171daa5fe..1143fd121 100644 --- a/modules/services/gitlab-runner.nix +++ b/modules/services/gitlab-runner.nix @@ -54,8 +54,8 @@ let "--builds-dir ${service.buildsDir}" ++ optional (service.cloneUrl != null) "--clone-url ${service.cloneUrl}" - ++ optional (service.preCloneScript != null) - "--pre-clone-script ${service.preCloneScript}" + ++ optional (service.preGetSourcesScript != null) + "--pre-get-sources-script ${service.preGetSourcesScript}" ++ optional (service.preBuildScript != null) "--pre-build-script ${service.preBuildScript}" ++ optional (service.postBuildScript != null) @@ -479,7 +479,7 @@ in Whitelist allowed services. ''; }; - preCloneScript = mkOption { + preGetSourcesScript = mkOption { type = types.nullOr types.path; default = null; description = ''