Skip to content

Commit

Permalink
gitlab-runner: rename 'preCloneScript' to 'preGetSourcesScript'
Browse files Browse the repository at this point in the history
'--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.
  • Loading branch information
rvem committed Sep 20, 2024
1 parent 5334969 commit 10d2322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/services/gitlab-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -479,7 +479,7 @@ in
Whitelist allowed services.
'';
};
preCloneScript = mkOption {
preGetSourcesScript = mkOption {
type = types.nullOr types.path;
default = null;
description = ''
Expand Down

0 comments on commit 10d2322

Please sign in to comment.