provide default prefix for drone exec

This commit is contained in:
Brad Rydzewski 2017-04-18 13:23:52 +02:00
parent 15f5b8f414
commit 232a4fab82

View file

@ -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"),
),