Skip to content

Commit

Permalink
feat: ignore tag suffix of image platform if single
Browse files Browse the repository at this point in the history
Signed-off-by: hang lv <xlv20@fudan.edu.cn>
  • Loading branch information
n063h committed May 5, 2023
1 parent 334e4e8 commit b153bad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/app/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ func build(clicontext *cli.Context) error {
for _, platform := range platforms {
o, p := opt, platform
o.Platform = p
o.Tag += "-" + strings.Replace(p, "/", "-", 1)
if len(platforms)>1{
o.Tag += "-" + strings.Replace(p, "/", "-", 1)
}
builder, err := buildutil.GetBuilder(clicontext, o)
if err != nil {
return err
Expand Down

0 comments on commit b153bad

Please sign in to comment.