Reverted not including build args in cache key
This commit is contained in:
parent
a111681895
commit
c425f02866
|
|
@ -191,6 +191,7 @@ func (s *stageBuilder) optimize(compositeKey CompositeCache, cfg v1.Config) erro
|
||||||
func (s *stageBuilder) build() error {
|
func (s *stageBuilder) build() error {
|
||||||
// Set the initial cache key to be the base image digest, the build args and the SrcContext.
|
// Set the initial cache key to be the base image digest, the build args and the SrcContext.
|
||||||
compositeKey := NewCompositeCache(s.baseImageDigest)
|
compositeKey := NewCompositeCache(s.baseImageDigest)
|
||||||
|
compositeKey.AddKey(s.opts.BuildArgs...)
|
||||||
|
|
||||||
// Apply optimizations to the instructions.
|
// Apply optimizations to the instructions.
|
||||||
if err := s.optimize(*compositeKey, s.cf.Config); err != nil {
|
if err := s.optimize(*compositeKey, s.cf.Config); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue