Merge pull request #76 from Zhomart/fix-repo-prefix

fixed appending registry before the repo
This commit is contained in:
Brad Rydzewski 2016-08-26 00:15:03 -07:00 committed by GitHub
commit 3710889029
1 changed files with 1 additions and 1 deletions

View File

@ -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
}