Treat docker.io as hub.docker.com
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing

This commit is contained in:
IamTheFij 2020-12-01 20:37:57 -08:00
parent 50c46b1b6e
commit e7ee16231b

View File

@ -83,7 +83,9 @@ func ParseImageTag(imageTag string) (ImageTag, error) {
image = "library/" + image
case 2:
parts := strings.Split(image, "/")
registry = parts[0]
if parts[0] != "docker.io" {
registry = parts[0]
}
image = strings.Join(parts[1:], "/")
}