diff --git a/vars/declarativeFunctions.groovy b/vars/declarativeFunctions.groovy index 52dc0c7..c32f747 100644 --- a/vars/declarativeFunctions.groovy +++ b/vars/declarativeFunctions.groovy @@ -93,6 +93,7 @@ def buildContainer (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ + --ignore-var-run=false \\ -f "${ws}/Dockerfile" \\ --destination "${config.imageDest}" \\ ${buildArguments} @@ -127,6 +128,7 @@ def buildContainerMultipleDestinations (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ + --ignore-var-run=false \\ -f "${ws}/Dockerfile" \\ ${buildArguments} """ diff --git a/vars/functions.groovy b/vars/functions.groovy index a07c7c3..f1b3b4d 100644 --- a/vars/functions.groovy +++ b/vars/functions.groovy @@ -123,6 +123,7 @@ def buildContainer (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ + --ignore-var-run=false \\ -f "${ws}/Dockerfile" \\ --destination "${config.imageDest}" \\ ${buildArguments} @@ -161,6 +162,7 @@ def buildContainerMultipleDestinations (Map config, List buildArg = []) { /kaniko/executor \\ --force \\ --context "${ws}" \\ + --ignore-var-run=false \\ -f "${ws}/Dockerfile" \\ ${buildArguments} """