From cca6052faba02599055fba1663cd69c74ae1a49d Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Thu, 25 Aug 2016 23:58:51 -0700 Subject: [PATCH] fixed appending registry before the repo --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 2fd53cf..ce784d1 100644 --- a/plugin.go +++ b/plugin.go @@ -61,7 +61,7 @@ func (p Plugin) Exec() error { // this code attempts to normalize the repository name by appending the fully // qualified registry name if otherwise omitted. if p.Login.Registry != defaultRegistry && - strings.HasPrefix(p.Build.Repo, defaultRegistry) { + !strings.HasPrefix(p.Build.Repo, p.Login.Registry) { p.Build.Repo = p.Login.Registry + "/" + p.Build.Repo }