provide default prefix for drone exec
This commit is contained in:
parent
15f5b8f414
commit
232a4fab82
1 changed files with 15 additions and 0 deletions
|
@ -48,6 +48,18 @@ var execCmd = cli.Command{
|
||||||
Usage: "build volumes",
|
Usage: "build volumes",
|
||||||
EnvVar: "DRONE_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{
|
cli.StringSliceFlag{
|
||||||
Name: "privileged",
|
Name: "privileged",
|
||||||
Usage: "privileged plugins",
|
Usage: "privileged plugins",
|
||||||
|
@ -317,6 +329,9 @@ func exec(c *cli.Context) error {
|
||||||
c.String("workspace-base"),
|
c.String("workspace-base"),
|
||||||
c.String("workspace-path"),
|
c.String("workspace-path"),
|
||||||
),
|
),
|
||||||
|
compiler.WithNetworks(
|
||||||
|
c.StringSlice("network")...,
|
||||||
|
),
|
||||||
compiler.WithPrefix(
|
compiler.WithPrefix(
|
||||||
c.String("prefix"),
|
c.String("prefix"),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue