Skip to content

Commit

Permalink
set jib image creation time
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Mars <[email protected]>
  • Loading branch information
rohanmars authored and manusa committed Apr 30, 2021
1 parent 00512cd commit 9317f5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static Set<String> getAllImageTags(List<String> tags, String imageName) {
}

private static void submitPushToJib(TarImage baseImage, RegistryImage targetImage, ExecutorService jibBuildExecutor, KitLogger logger) throws InterruptedException, ExecutionException, RegistryException, CacheDirectoryCreationException, IOException {
Jib.from(baseImage).containerize(Containerizer.to(targetImage)
Jib.from(baseImage).setCreationTime(Instant.now()).containerize(Containerizer.to(targetImage)
.setAllowInsecureRegistries(true)
.setExecutorService(jibBuildExecutor)
.addEventHandler(LogEvent.class, log(logger))
Expand Down Expand Up @@ -375,4 +375,4 @@ private static String generateProgressBar(double progress) {
.append("% complete")
.toString();
}
}
}

0 comments on commit 9317f5e

Please sign in to comment.