Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 1eda0a1

Browse files
author
Nathan Potter
authored
Merge pull request #140 from cdr/lowercase-image-name
Use lowercase name for docker build
2 parents f708cce + dcea7c5 commit 1eda0a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func (p *project) buildImage() (string, bool, error) {
142142
return "", false, nil
143143
}
144144

145-
imageID := p.repo.DockerName()
145+
// Docker image names must be completely lowercase.
146+
imageID := strings.ToLower(p.repo.DockerName())
146147

147148
cmdStr := fmt.Sprintf("docker build --network=host -t %v -f %v %v --label %v=%v",
148149
imageID, path, p.localDir(), baseImageLabel, imageID,

0 commit comments

Comments
 (0)