0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-29 04:30:36 +00:00
This commit is contained in:
Grzegorz Graczyk 2015-10-21 14:27:34 +02:00
parent 138d5e155d
commit 07b9d254df

View File

@ -38,7 +38,7 @@ func main() {
// in case someone uses the shorthand repository name // in case someone uses the shorthand repository name
// with a custom registry, we should concatinate so that // with a custom registry, we should concatinate so that
// we have the fully qualified image name. // we have the fully qualified image name.
if strings.Count(vargs.Repo, "/") == 1 && len(vargs.Registry) != 0 { if strings.Count(vargs.Repo, "/") <= 1 && len(vargs.Registry) != 0 && !strings.HasPrefix(vargs.Repo, vargs.Registry) {
vargs.Repo = fmt.Sprintf("%s/%s", vargs.Registry, vargs.Repo) vargs.Repo = fmt.Sprintf("%s/%s", vargs.Registry, vargs.Repo)
} }