diff --git a/drone/exec.go b/drone/exec.go index 71c954c2..93150fd0 100644 --- a/drone/exec.go +++ b/drone/exec.go @@ -48,6 +48,18 @@ var execCmd = cli.Command{ Usage: "build volumes", EnvVar: "DRONE_VOLUMES", }, + cli.StringSliceFlag{ + Name: "network", + Usage: "external networks", + EnvVar: "DRONE_NETWORKS", + }, + cli.StringFlag{ + Name: "prefix", + Value: "drone", + Usage: "prefix containers created by drone", + EnvVar: "DRONE_DOCKER_PREFIX", + Hidden: true, + }, cli.StringSliceFlag{ Name: "privileged", Usage: "privileged plugins", @@ -317,6 +329,9 @@ func exec(c *cli.Context) error { c.String("workspace-base"), c.String("workspace-path"), ), + compiler.WithNetworks( + c.StringSlice("network")..., + ), compiler.WithPrefix( c.String("prefix"), ),