nixos/gitlab-runner: add support for 'docker+machine' and 'docker-ssh+machine' executors (#108763)

This commit is contained in:
misuzu 2021-01-26 02:01:54 +02:00 committed by GitHub
parent 896a3428ec
commit 1e38f0bdf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"