From 88e6074a7614e6c0ea1b2605f45a9c11928b29f4 Mon Sep 17 00:00:00 2001 From: Juli76911 Date: Wed, 16 Oct 2019 14:33:54 +0200 Subject: [PATCH] Update build.go image name and repository must be in lower case, as docker cannot build images with upper case letters and throws the following error: invalid argument "CapitalLetter/ImageName:0.0.13" for "-t, --tag" flag: invalid reference format: repository name must be lowercase See 'docker build --help'. failed to build image: exit status 125 --- build.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.go b/build.go index 0e7b1b5..248f84a 100644 --- a/build.go +++ b/build.go @@ -1,5 +1,9 @@ package main +import ( + "strings" +) + func build(cmd Commander, inputs Inputs) error { args := []string{ "build", @@ -15,6 +19,7 @@ func build(cmd Commander, inputs Inputs) error { } for _, tag := range inputs.Tags { + tag = strings.toLower(tag) args = append(args, "--tag", tag) }