mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-22 00:00:40 +00:00
Merge pull request #76 from Zhomart/fix-repo-prefix
fixed appending registry before the repo
This commit is contained in:
commit
3710889029
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user