0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

Gitlab-Runner: Add --post-get-sources-script

`--post-get-sources-script` has been added a while ago.  This
makes it available via the nix configuration.

See https://about.gitlab.com/blog/2023/03/27/changes-to-the-preclonescript/
This commit is contained in:
Florian Sesser 2024-07-02 14:46:48 +00:00
parent 42a2c268f6
commit 828eb8c574

View file

@ -139,6 +139,8 @@ let
"--clone-url ${service.cloneUrl}"
++ optional (service.preGetSourcesScript != null)
"--pre-get-sources-script ${service.preGetSourcesScript}"
++ optional (service.postGetSourcesScript != null)
"--post-get-sources-script ${service.postGetSourcesScript}"
++ optional (service.preBuildScript != null)
"--pre-build-script ${service.preBuildScript}"
++ optional (service.postBuildScript != null)
@ -502,6 +504,13 @@ in {
Runner-specific command script executed before code is pulled.
'';
};
postGetSourcesScript = mkOption {
type = types.nullOr types.path;
default = null;
description = ''
Runner-specific command script executed after code is pulled.
'';
};
preBuildScript = mkOption {
type = types.nullOr types.path;
default = null;