From aa6ef8e22bab27416982a101ce5ce73f0bd03c89 Mon Sep 17 00:00:00 2001 From: danjujan <44864658+danjujan@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:41:46 +0200 Subject: [PATCH] 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 --- .../services/continuous-integration/gitlab-runner.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/continuous-integration/gitlab-runner.nix b/nixos/modules/services/continuous-integration/gitlab-runner.nix index 34e9b6200783..b755cc94920a 100644 --- a/nixos/modules/services/continuous-integration/gitlab-runner.nix +++ b/nixos/modules/services/continuous-integration/gitlab-runner.nix @@ -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