0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-25 09:10:39 +00:00

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

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
}