From f087f4ac248434044f4b96c8bb4c199a50143dd5 Mon Sep 17 00:00:00 2001 From: Aaron Prindle Date: Tue, 4 Jun 2024 12:09:08 -0700 Subject: [PATCH] docs: document --no-push-cache flag in README.md (#3188) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ec9b2e2475..c087c60013 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ _If you are interested in contributing to kaniko, see - [Flag `--log-format`](#flag---log-format) - [Flag `--log-timestamp`](#flag---log-timestamp) - [Flag `--no-push`](#flag---no-push) + - [Flag `--no-push-cache`](#flag---no-push-cache) - [Flag `--oci-layout-path`](#flag---oci-layout-path) - [Flag `--push-retry`](#flag---push-retry) - [Flag `--registry-certificate`](#flag---registry-certificate) @@ -948,6 +949,13 @@ Set this flag if you only want to build the image, without pushing to a registry. This can also be defined through `KANIKO_NO_PUSH` environment variable. +NOTE: this will still push cache layers to the repo, to disable pushing cache layers use `--no-push-cache` + +#### Flag `--no-push-cache` + +Set this flag if you do not want to push cache layers to a +registry. Can be used in addition to `--no-push` to push no layers to a registry. + #### Flag `--oci-layout-path` Set this flag to specify a directory in the container where the OCI image layout