nixos/gitlab-runner: add clone-url option (#93894)
This commit is contained in:
parent
a624ce3e32
commit
e49fb87b05
@ -49,6 +49,8 @@ let
|
|||||||
] ++ service.registrationFlags
|
] ++ service.registrationFlags
|
||||||
++ optional (service.buildsDir != null)
|
++ optional (service.buildsDir != null)
|
||||||
"--builds-dir ${service.buildsDir}"
|
"--builds-dir ${service.buildsDir}"
|
||||||
|
++ optional (service.cloneUrl != null)
|
||||||
|
"--clone-url ${service.cloneUrl}"
|
||||||
++ optional (service.preCloneScript != null)
|
++ optional (service.preCloneScript != null)
|
||||||
"--pre-clone-script ${service.preCloneScript}"
|
"--pre-clone-script ${service.preCloneScript}"
|
||||||
++ optional (service.preBuildScript != null)
|
++ optional (service.preBuildScript != null)
|
||||||
@ -377,6 +379,14 @@ in
|
|||||||
in context of selected executor (Locally, Docker, SSH).
|
in context of selected executor (Locally, Docker, SSH).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
cloneUrl = mkOption {
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
|
example = "http://gitlab.example.local";
|
||||||
|
description = ''
|
||||||
|
Overwrite the URL for the GitLab instance. Used if the Runner can’t connect to GitLab on the URL GitLab exposes itself.
|
||||||
|
'';
|
||||||
|
};
|
||||||
dockerImage = mkOption {
|
dockerImage = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
default = null;
|
default = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user