mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 09:45:09 +02:00
Tighten up the timing around Dockerfile commands. (#514)
Right now this timing also includes the snapshot time.
This commit is contained in:
@@ -227,6 +227,7 @@ func (s *stageBuilder) build() error {
|
||||
return err
|
||||
}
|
||||
files = command.FilesToSnapshot()
|
||||
timing.DefaultRun.Stop(t)
|
||||
|
||||
if !s.shouldTakeSnapshot(index, files) {
|
||||
continue
|
||||
@@ -250,7 +251,6 @@ func (s *stageBuilder) build() error {
|
||||
if err := s.saveSnapshotToImage(command.String(), tarPath); err != nil {
|
||||
return err
|
||||
}
|
||||
timing.DefaultRun.Stop(t)
|
||||
}
|
||||
if err := cacheGroup.Wait(); err != nil {
|
||||
logrus.Warnf("error uploading layer to cache: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user