customize clone image
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user