|
|
@ -103,6 +103,12 @@ func main() { |
|
|
|
Usage: "a list of var files to use. Each value is passed as -var-file=<value>", |
|
|
|
EnvVar: "PLUGIN_VAR_FILES", |
|
|
|
}, |
|
|
|
cli.StringFlag{ |
|
|
|
Name: "deploy-env-path", |
|
|
|
Usage: "Path to save the dotenv file", |
|
|
|
EnvVar: "PLUGIN_DEPLOY_ENV_PATH", |
|
|
|
Value: ".deploy.env", |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
if err := app.Run(os.Args); err != nil { |
|
|
@ -137,17 +143,18 @@ func run(c *cli.Context) error { |
|
|
|
|
|
|
|
plugin := Plugin{ |
|
|
|
Config: Config{ |
|
|
|
Actions: c.StringSlice("actions"), |
|
|
|
Vars: vars, |
|
|
|
Secrets: secrets, |
|
|
|
InitOptions: initOptions, |
|
|
|
Cacert: c.String("ca_cert"), |
|
|
|
Sensitive: c.Bool("sensitive"), |
|
|
|
RoleARN: c.String("role_arn_to_assume"), |
|
|
|
RootDir: c.String("root_dir"), |
|
|
|
Parallelism: c.Int("parallelism"), |
|
|
|
Targets: c.StringSlice("targets"), |
|
|
|
VarFiles: c.StringSlice("var_files"), |
|
|
|
Actions: c.StringSlice("actions"), |
|
|
|
Vars: vars, |
|
|
|
Secrets: secrets, |
|
|
|
InitOptions: initOptions, |
|
|
|
Cacert: c.String("ca_cert"), |
|
|
|
Sensitive: c.Bool("sensitive"), |
|
|
|
RoleARN: c.String("role_arn_to_assume"), |
|
|
|
RootDir: c.String("root_dir"), |
|
|
|
Parallelism: c.Int("parallelism"), |
|
|
|
Targets: c.StringSlice("targets"), |
|
|
|
VarFiles: c.StringSlice("var_files"), |
|
|
|
DeployEnvPath: c.String("deploy-env-path"), |
|
|
|
}, |
|
|
|
Netrc: Netrc{ |
|
|
|
Login: c.String("netrc.username"), |
|
|
|