Browse code

builder-next: fix squash

Tagger was not called for BuildKit-mode.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>

Akihiro Suda authored on 2019/03/19 19:48:07
Showing 1 changed files
... ...
@@ -82,8 +82,8 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
82 82
 	if !useBuildKit {
83 83
 		stdout := config.ProgressWriter.StdoutFormatter
84 84
 		fmt.Fprintf(stdout, "Successfully built %s\n", stringid.TruncateID(imageID))
85
-		err = tagger.TagImages(image.ID(imageID))
86 85
 	}
86
+	err = tagger.TagImages(image.ID(imageID))
87 87
 	return imageID, err
88 88
 }
89 89