Merge pull request #668 from orisano/docs-fix-wrong
docs: fix document on DoBuild
This commit is contained in:
commit
40ac05c8bb
|
|
@ -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 == "" {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue