From 232a4fab82a5d2632d4370516f94b7f067a3944e Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 18 Apr 2017 13:23:52 +0200 Subject: [PATCH] provide default prefix for drone exec --- drone/exec.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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"), ),