fix(cmd/containerbuild): support commas in --docker-tags (#1099)
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
8b9dafac51
commit
9430d0e6a5
2 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,11 @@ func main() {
|
|||
)
|
||||
}
|
||||
|
||||
if strings.Contains(*dockerTags, ",") {
|
||||
newTags := strings.Join(strings.Split(*dockerTags, ","), "\n")
|
||||
dockerTags = &newTags
|
||||
}
|
||||
|
||||
setOutput("docker_image", strings.SplitN(*dockerTags, "\n", 2)[0])
|
||||
|
||||
version, err := run("git describe --tags --always --dirty")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue