GoogleContainerTools / GoogleContainerTools/skaffold

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

Open
#4,571 4 comments 13 reactions 0 assignees View on GitHub
area/cache kind/feature-request priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

#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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.