Compare commits
4 Commits
d3a89439e6
...
cf68ec8f3b
| Author | SHA1 | Date |
|---|---|---|
|
|
cf68ec8f3b | |
|
|
236ba5690e | |
|
|
fa67e45814 | |
|
|
1fe56af526 |
|
|
@ -1,2 +0,0 @@
|
|||
Jerome Ju <jeromeju@google.com>
|
||||
Quan Zhang <zhangquan@google.com>
|
||||
20
README.md
20
README.md
|
|
@ -1,3 +1,11 @@
|
|||
# 🧊 This project is archived and no longer developed or maintained. 🧊
|
||||
|
||||
The code remains available for historic purposes.
|
||||
|
||||
The README as of the archival date remains unchanged below for historic purposes.
|
||||
|
||||
-----
|
||||
|
||||
# kaniko - Build Images In Kubernetes
|
||||
|
||||
## 🚨NOTE: kaniko is not an officially supported Google product🚨
|
||||
|
|
@ -806,6 +814,18 @@ export IFS=''
|
|||
/kaniko/executor --build-arg "MY_VAR='value with spaces'" ...
|
||||
```
|
||||
|
||||
It is also possible to lookup the build argument value from the environment
|
||||
variables which is especially useful when you already have the build argument
|
||||
value in the environment variables and don't want to fiddle around with shell escaping.
|
||||
To use an environment variable as build argument value, you just need to
|
||||
use the `--build-arg` parameter just with the name of the argument:
|
||||
|
||||
```bash
|
||||
/kaniko/executor --build-arg "MY_VAR" ...
|
||||
```
|
||||
In this example, Kaniko will then set the build argument `MY_VAR` to the value of the environment
|
||||
variable `MY_VAR`.
|
||||
|
||||
#### Flag `--cache`
|
||||
|
||||
Set this flag as `--cache=true` to opt into caching with kaniko.
|
||||
|
|
|
|||
Loading…
Reference in New Issue