nixos/gitlab-runner: let script options accept scripts as strings

The script options not only accept paths to a script but also the script as string. See https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section
This commit is contained in:
danjujan
2024-09-26 14:41:46 +02:00
committed by GitHub
parent 77cfc584b2
commit aa6ef8e22b
@@ -499,21 +499,21 @@ in {
'';
};
preGetSourcesScript = mkOption {
type = types.nullOr types.path;
type = types.nullOr (types.either types.str types.path);
default = null;
description = ''
Runner-specific command script executed before code is pulled.
'';
};
postGetSourcesScript = mkOption {
type = types.nullOr types.path;
type = types.nullOr (types.either types.str types.path);
default = null;
description = ''
Runner-specific command script executed after code is pulled.
'';
};
preBuildScript = mkOption {
type = types.nullOr types.path;
type = types.nullOr (types.either types.str types.path);
default = null;
description = ''
Runner-specific command script executed after code is pulled,
@@ -521,7 +521,7 @@ in {
'';
};
postBuildScript = mkOption {
type = types.nullOr types.path;
type = types.nullOr (types.either types.str types.path);
default = null;
description = ''
Runner-specific command script executed after code is pulled