diff --git a/api/server/backend/build/backend.go b/api/server/backend/build/backend.go index ff7a5a9b42..0178091695 100644 --- a/api/server/backend/build/backend.go +++ b/api/server/backend/build/backend.go @@ -91,7 +91,9 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string stdout := config.ProgressWriter.StdoutFormatter fmt.Fprintf(stdout, "Successfully built %s\n", stringid.TruncateID(imageID)) } - err = tagger.TagImages(image.ID(imageID)) + if imageID != "" { + err = tagger.TagImages(image.ID(imageID)) + } return imageID, err }