Skip to content

Commit

Permalink
nixos/gitlab-runner: add clone-url option (#93894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan committed Jul 30, 2020
1 parent a624ce3 commit e49fb87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nixos/modules/services/continuous-integration/gitlab-runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ let
] ++ service.registrationFlags
++ optional (service.buildsDir != null)
"--builds-dir ${service.buildsDir}"
++ optional (service.cloneUrl != null)
"--clone-url ${service.cloneUrl}"
++ optional (service.preCloneScript != null)
"--pre-clone-script ${service.preCloneScript}"
++ optional (service.preBuildScript != null)
Expand Down Expand Up @@ -377,6 +379,14 @@ in
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 {
type = types.nullOr types.str;
default = null;
Expand Down

0 comments on commit e49fb87

Please sign in to comment.