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:
parent
a7425d1fd0
commit
87bed1417f
|
|
@ -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.
|
||||
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
|
||||
|
||||
Set this flag as `--cache=true` to opt into caching with kaniko.
|
||||
|
|
|
|||
Loading…
Reference in New Issue