Merge pull request #668 from orisano/docs-fix-wrong

docs: fix document on DoBuild
This commit is contained in:
Cole Wippern
2019-12-21 15:20:21 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func Destination(opts *config.KanikoOptions, cacheKey string) (string, error) {
return fmt.Sprintf("%s:%s", cache, cacheKey), nil
}
// LocalSource retieves a source image from a local cache given cacheKey
// LocalSource retrieves a source image from a local cache given cacheKey
func LocalSource(opts *config.CacheOptions, cacheKey string) (v1.Image, error) {
cache := opts.CacheDir
if cache == "" {
+1 -1
View File
@@ -494,7 +494,7 @@ func DoBuild(opts *config.KanikoOptions) (v1.Image, error) {
digestToCacheKey := make(map[string]string)
stageIdxToDigest := make(map[string]string)
// Parse dockerfile and unpack base image to root
// Parse dockerfile
stages, err := dockerfile.Stages(opts)
if err != nil {
return nil, err