Update readme (#1897)

Describes work-around for #1803 - add an example of how to work around issues encountered out of the box when trying to pass build-args that contain spaces in their values
This commit is contained in:
Pat Litke 2022-01-28 14:51:08 -05:00 committed by GitHub
parent a7425d1fd0
commit 87bed1417f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -655,6 +655,15 @@ To collect and publish the image's build information using the Jenkins Artifacto
This flag allows you to pass in ARG values at build time, similarly to Docker. This flag allows you to pass in ARG values at build time, similarly to Docker.
You can set it multiple times for multiple arguments. You can set it multiple times for multiple arguments.
Note that passing values that contain spaces is not natively suppored - you need to ensure that the IFS is set to null before your executor command.
You can set this by adding `export IFS=''` before your executor call.
See the following example
```bash
export IFS=''
/kaniko/executor --build-arg "MY_VAR='value with spaces'" ...
```
#### --cache #### --cache
Set this flag as `--cache=true` to opt into caching with kaniko. Set this flag as `--cache=true` to opt into caching with kaniko.