mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 08:20:29 +02:00
feat: disable cache-copy-layers in multistage builds; closes 2065 (#2227)
This commit is contained in:
@@ -58,6 +58,10 @@ func ParseStages(opts *config.KanikoOptions) ([]instructions.Stage, []instructio
|
||||
return nil, nil, errors.Wrap(err, "parsing dockerfile")
|
||||
}
|
||||
|
||||
if opts.CacheCopyLayers && len(stages) >= 2 {
|
||||
return nil, nil, errors.New("kaniko does not support caching copy layers in multistage builds")
|
||||
}
|
||||
|
||||
metaArgs, err = expandNested(metaArgs, opts.BuildArgs)
|
||||
if err != nil {
|
||||
return nil, nil, errors.Wrap(err, "expanding meta ARGs")
|
||||
|
||||
Reference in New Issue
Block a user