Merge pull request #353 from priyawadhwa/cache

Add layer caching to kaniko
This commit is contained in:
priyawadhwa
2018-09-24 21:40:40 +01:00
committed by GitHub
10 changed files with 339 additions and 46 deletions
+2
View File
@@ -95,6 +95,8 @@ func addKanikoOptionsFlags(cmd *cobra.Command) {
RootCmd.PersistentFlags().BoolVarP(&opts.Reproducible, "reproducible", "", false, "Strip timestamps out of the image to make it reproducible")
RootCmd.PersistentFlags().StringVarP(&opts.Target, "target", "", "", "Set the target build stage to build")
RootCmd.PersistentFlags().BoolVarP(&opts.NoPush, "no-push", "", false, "Do not push the image to the registry")
RootCmd.PersistentFlags().StringVarP(&opts.CacheRepo, "cache-repo", "", "", "Specify a repository to use as a cache, otherwise one will be inferred from the destination provided")
RootCmd.PersistentFlags().BoolVarP(&opts.Cache, "cache", "", false, "Use cache when building image")
}
// addHiddenFlags marks certain flags as hidden from the executor help text