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

fixed appending registry before the repo

This commit is contained in:
Zhomart Mukhamejanov 2016-08-25 23:58:51 -07:00
parent 7da2f28bf6
commit cca6052fab

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
}