Fix the time format we use to upload to GCS. (#538)
This commit is contained in:
		
							parent
							
								
									fcd1976d3b
								
							
						
					
					
						commit
						a4b47a4992
					
				|  | @ -197,7 +197,7 @@ func (d *DockerFileBuilder) BuildImage(imageRepo, gcsBucket, dockerfilesPath, do | ||||||
| 	if b, err := strconv.ParseBool(os.Getenv("BENCHMARK")); err == nil && b { | 	if b, err := strconv.ParseBool(os.Getenv("BENCHMARK")); err == nil && b { | ||||||
| 		benchmarkEnv = "BENCHMARK_FILE=/kaniko/benchmarks/" + dockerfile | 		benchmarkEnv = "BENCHMARK_FILE=/kaniko/benchmarks/" + dockerfile | ||||||
| 		benchmarkFile := path.Join("benchmarks", dockerfile) | 		benchmarkFile := path.Join("benchmarks", dockerfile) | ||||||
| 		dst := path.Join("benchmarks/run_"+time.Now().Format("2006-01-02 15:04:05"), dockerfile) | 		dst := path.Join("benchmarks/run_"+time.Now().Format("2006-01-02-15:04:05"), dockerfile) | ||||||
| 		defer UploadFileToBucket(gcsBucket, benchmarkFile, dst) | 		defer UploadFileToBucket(gcsBucket, benchmarkFile, dst) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue