1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-20 01:41:34 +01:00

Add --env-file and fix --secret-file in drone exec

This commit is contained in:
Dominik Schmidt 2018-11-13 21:45:44 +01:00
parent d7fcf6b995
commit 08d5aeced7

@ -87,6 +87,10 @@ var Command = cli.Command{
Name: "secret-file",
Usage: "secret file",
},
cli.StringFlag{
Name: "env-file",
Usage: "env file",
},
cli.StringSliceFlag{
Name: "privileged",
Usage: "privileged plugins",
@ -249,9 +253,14 @@ func exec(c *cli.Context) error {
c.StringSlice("network"),
),
transform.WithProxy(),
transform.WithEnviron(
readParams(
c.String("secret-file"),
),
),
transform.WithSecrets(
readParams(
c.String("env-file"),
c.String("secret-file"),
),
),
transform.WithVolumes(