Closed guyos closed 5 years ago
Hi guys,
I have the same issue.
Create your build template as mentioned below
name: 'gcr.io/kaniko-project/executor:latest'
args:
- --dockerfile=${DOCKERFILE}
- --build-arg
- A_TARGET=green
- --build-arg
- B_TARGET=blue
- --destination=${IMAGE}
- --cache=true
@ankur47's answer is correct, without being passed as separate items into args
, it's interpreted as one arg that includes a space, as if you'd passed executor "--build-arg A_TARGET=green"
instead of executor --build-arg A_TARGET=green
like you expect, and the tool requires.
/kind bug
Expected Behavior
Build argument is passed to Dockerfile and arg value is used in the build
Actual Behavior
Getting the following error when building...
Steps to Reproduce the Problem
Additional Info