GoogleContainerTools / skaffold

Easy and Repeatable Kubernetes Development
https://skaffold.dev/
Apache License 2.0
15.08k stars 1.63k forks source link

Google cloud build missing cache hit #9141

Open bhack opened 1 year ago

bhack commented 1 year ago

Expected behavior

I am using cacheFrom: and cloud build and I expected that the cache image is used when building

Actual behavior

The image often is not found and so t is going to rebuild again from scratch also if not going to change the commit at all.

Information

skaffold dev After I close skaffold the image is rebuilt again and I run again skaffold dev I am using

tagPolicy:
    gitCommit: {}

And I suppose it is supported after https://github.com/GoogleContainerTools/skaffold/pull/5903

bhack commented 1 year ago

/cc @briandealwis for https://github.com/GoogleContainerTools/skaffold/pull/5903

bhack commented 1 year ago

P.s. same configuration but with the local build it works, the cache hit.

bhack commented 1 year ago

Are we forced to use https://github.com/GoogleContainerTools/skaffold/issues/5004 to reuse intermediate steps on GCB?