From e3bf9fb062ff870c32d718d298847034b07af6c9 Mon Sep 17 00:00:00 2001 From: dlorenc Date: Mon, 28 Jan 2019 15:53:13 -0600 Subject: [PATCH] Only log the hour of the benchmark run. (#544) Also combine all files into one directory. --- integration/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/images.go b/integration/images.go index ebe55071a..025ad5a24 100644 --- a/integration/images.go +++ b/integration/images.go @@ -197,7 +197,8 @@ func (d *DockerFileBuilder) BuildImage(imageRepo, gcsBucket, dockerfilesPath, do if b, err := strconv.ParseBool(os.Getenv("BENCHMARK")); err == nil && b { benchmarkEnv = "BENCHMARK_FILE=/kaniko/benchmarks/" + dockerfile benchmarkFile := path.Join(benchmarkDir, dockerfile) - dst := path.Join("benchmarks/run_"+time.Now().Format("2006-01-02-15:04:05"), dockerfile) + fileName := fmt.Sprintf("run_%s_%s", time.Now().Format("2006-01-02-15:04"), dockerfile) + dst := path.Join("benchmarks", fileName) defer UploadFileToBucket(gcsBucket, benchmarkFile, dst) }