Skip to content

Commit

Permalink
Support --cache-artifacts flag for render
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Apr 8, 2021
1 parent bcb2eaa commit 306a9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var flagRegistry = []Flag{
Value: &opts.CacheArtifacts,
DefValue: true,
FlagAddMethod: "BoolVar",
DefinedOn: []string{"dev", "build", "run", "debug"},
DefinedOn: []string{"dev", "build", "run", "debug", "render"},
IsEnum: true,
},
{
Expand Down
2 changes: 2 additions & 0 deletions docs/content/en/docs/references/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ Examples:
Options:
--add-skaffold-labels=true: Add Skaffold-specific labels to rendered manifest. If false, custom labels are still applied. Helpful for GitOps model where Skaffold is not the deployer.
-a, --build-artifacts=: File containing build result from a previous 'skaffold build --file-output'
--cache-artifacts=true: Set to false to disable default caching of artifacts
-d, --default-repo='': Default repository value (overrides global config)
--digest-source='local': Set to 'local' to build images locally and use digests from built images; Set to 'remote' to resolve the digest of images by tag from the remote registry; Set to 'none' to use tags directly from the Kubernetes manifests. Set to 'tag' to use tags directly from the build.
-f, --filename='skaffold.yaml': Path or URL to the Skaffold config file
Expand All @@ -898,6 +899,7 @@ Env vars:

* `SKAFFOLD_ADD_SKAFFOLD_LABELS` (same as `--add-skaffold-labels`)
* `SKAFFOLD_BUILD_ARTIFACTS` (same as `--build-artifacts`)
* `SKAFFOLD_CACHE_ARTIFACTS` (same as `--cache-artifacts`)
* `SKAFFOLD_DEFAULT_REPO` (same as `--default-repo`)
* `SKAFFOLD_DIGEST_SOURCE` (same as `--digest-source`)
* `SKAFFOLD_FILENAME` (same as `--filename`)
Expand Down

0 comments on commit 306a9e5

Please sign in to comment.