This topic tells you how to use the Tanzu Accelerator CLI tanzu accelerator push
command to push source code from local path to source image.
Push source code from local path to source image used by an accelerator
tanzu accelerator push [flags]
tanzu accelerator push --local-path <local path> --source-image <image>
-h, --help help for push
--local-path string path to the directory containing the source for the accelerator
--source-image string name of the source image for the accelerator
NoteWhen you run the
tanzu accelerator push
command,--source-image
is only required if the registry being used is not handled by Local Source Proxy.
For information about Local Source Proxy, see Overview of Local Source Proxy.
If Local Source Proxy cannot be configured, use a source image registry. Before deploying a workload, you must authenticate with an image registry to store your source code.
--context name name of the kubeconfig context to use (default is current-context defined by kubeconfig)
--kubeconfig file kubeconfig file (default is $HOME/.kube/config)