From ddc25946e9ff7b0b4547d42040b6c0283431f7bb Mon Sep 17 00:00:00 2001 From: Greyson Dehn Date: Thu, 16 Mar 2017 14:17:34 -0500 Subject: [PATCH] Change env precedence --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index b16f035..063ebc7 100644 --- a/main.go +++ b/main.go @@ -137,22 +137,22 @@ func main() { Name: "docker.registry", Usage: "docker registry", Value: defaultRegistry, - EnvVar: "DOCKER_REGISTRY,PLUGIN_REGISTRY", + EnvVar: "PLUGIN_REGISTRY,DOCKER_REGISTRY", }, cli.StringFlag{ Name: "docker.username", Usage: "docker username", - EnvVar: "DOCKER_USERNAME,PLUGIN_USERNAME", + EnvVar: "PLUGIN_USERNAME,DOCKER_USERNAME", }, cli.StringFlag{ Name: "docker.password", Usage: "docker password", - EnvVar: "DOCKER_PASSWORD,PLUGIN_PASSWORD", + EnvVar: "PLUGIN_PASSWORD,DOCKER_PASSWORD", }, cli.StringFlag{ Name: "docker.email", Usage: "docker email", - EnvVar: "DOCKER_EMAIL,PLUGIN_EMAIL", + EnvVar: "PLUGIN_EMAIL,DOCKER_EMAIL", }, }