customize clone image

This commit is contained in:
Brad Rydzewski
2019-10-31 10:26:02 -07:00
parent 6a8f0d1676
commit d6505a1717
3 changed files with 12 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ type Config struct {
Devices []string `envconfig:"DRONE_RUNNER_DEVICES"`
Networks []string `envconfig:"DRONE_RUNNER_NETWORKS"`
Privileged []string `envconfig:"DRONE_RUNNER_PRIVILEGED_IMAGES"`
Clone string `envconfig:"DRONE_RUNNER_CLONE_IMAGE"`
}
Platform struct {

View File

@@ -119,6 +119,7 @@ func (c *daemonCommand) run(*kingpin.ParseContext) error {
config.Limit.Trusted,
),
Compiler: &compiler.Compiler{
Clone: config.Runner.Clone,
Environ: config.Runner.Environ,
Privileged: append(config.Runner.Privileged, compiler.Privileged...),
Networks: config.Runner.Networks,