Skip to content

Commit

Permalink
nixos/gitlab-runner: add support for 'docker+machine' and 'docker-ssh…
Browse files Browse the repository at this point in the history
…+machine' executors (NixOS#108763)
  • Loading branch information
misuzu committed Jan 26, 2021
1 parent 896a342 commit 1e38f0b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -66,10 +66,10 @@ let
++ optional service.debugTraceDisabled
"--debug-trace-disabled"
++ map (e: "--env ${escapeShellArg e}") (mapAttrsToList (name: value: "${name}=${value}") service.environmentVariables)
++ optionals (service.executor == "docker") (
++ optionals (hasPrefix "docker" service.executor) (
assert (
assertMsg (service.dockerImage != null)
"dockerImage option is required for docker executor (${name})");
"dockerImage option is required for ${service.executor} executor (${name})");
[ "--docker-image ${service.dockerImage}" ]
++ optional service.dockerDisableCache
"--docker-disable-cache"
Expand Down

0 comments on commit 1e38f0b

Please sign in to comment.