func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "/builds", DefaultCacheDir: "/cache", SharedBuildsDir: false, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.NormalShell, RunnerCommand: "/usr/bin/gitlab-runner-helper", }, ShowHostname: true, SupportedOptions: []string{"image", "services"}, } creator := func() common.Executor { return &commandExecutor{ executor: executor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, }, } } featuresUpdater := func(features *common.FeaturesInfo) { features.Variables = true features.Image = true features.Services = true } common.RegisterExecutor("docker", executors.DefaultExecutorProvider{ Creator: creator, FeaturesUpdater: featuresUpdater, }) }
func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "builds", SharedBuildsDir: true, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.LoginShell, RunnerCommand: "gitlab-runner", }, ShowHostname: true, } creator := func() common.Executor { return &executor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, } } featuresUpdater := func(features *common.FeaturesInfo) { features.Variables = true } common.RegisterExecutor("ssh", executors.DefaultExecutorProvider{ Creator: creator, FeaturesUpdater: featuresUpdater, }) }
func init() { common.RegisterExecutor("docker+machine", newMachineProvider("docker")) common.RegisterExecutor("docker-ssh+machine", newMachineProvider("docker-ssh")) }