skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

Add a no-cache option to the command line to allow one-off full rebuilds

Open alexkreidler opened this issue 5 years ago • 4 comments

#2054 enabled support for the Docker --no-cache CLI flag in the skaffold.yaml file under each artifact.

However, my use case is that I want to select a subset of artifacts using skaffold build -b="artifact-1" and build them from scratch without a Docker (or BuildKit in my case) cache.

It would be great to have this as a CLI flag. I initially thought --cache-artifacts=false might do the trick, but it didn't.

It seems like maybe there should even be a meta-flag like --cache=false that could disable all forms of caching, from the build provider (docker or others) to Skaffold itself (with the cache-artifacts flag). Just something else to think about. If others express interest in that option, I can open another issue. I'm really enjoying skaffold so far!

alexkreidler avatar Jul 26 '20 21:07 alexkreidler

A broad --cache=true/false is an interesting idea!

briandealwis avatar Jul 28 '20 03:07 briandealwis

+1 - this would be helpful when debugging CloudBuild concurrency issues.

Currently we have to make dummy edits to files across multiple service to trigger rebuilds.

dhodun avatar Mar 04 '23 15:03 dhodun

+1

TatyanaKavalenkaTR avatar May 24 '23 13:05 TatyanaKavalenkaTR

+1

jay-docusign avatar Feb 05 '24 20:02 jay-docusign