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:
parent
42a2c268f6
commit
828eb8c574
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue