Properly set creds for DOCKER_USER for klar
This commit is contained in:
parent
ed4ab7a5cf
commit
ad766396b9
@ -20,9 +20,9 @@ type (
|
||||
|
||||
func (p Plugin) Exec() error {
|
||||
os.Setenv("CLAIR_ADDR", p.Url)
|
||||
_, exist := os.LookupEnv("DOCKER_USERNAME")
|
||||
_, exist := os.LookupEnv("DOCKER_USER")
|
||||
if !exist {
|
||||
os.Setenv("DOCKER_USERNAME", p.Username)
|
||||
os.Setenv("DOCKER_USER", p.Username)
|
||||
}
|
||||
_, exist = os.LookupEnv("DOCKER_PASSWORD")
|
||||
if !exist {
|
||||
|
Loading…
Reference in New Issue
Block a user