mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-01-30 22:09:37 +01:00
fix(kaniko): workaround for passing arguments containing spaces
set up input field separator as null and use eval to run kaniko executor
This commit is contained in:
parent
10b098cb52
commit
a95ae7d706
1 changed files with 10 additions and 5 deletions
|
@ -88,8 +88,13 @@ cat <<EOF >/kaniko/.docker/config.json
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# https://github.com/GoogleContainerTools/kaniko/issues/1803
|
||||||
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
||||||
/kaniko/executor --reproducible --force $ARGS
|
export IFS=''
|
||||||
|
kaniko_cmd="/kaniko/executor ${ARGS} --reproducible --force"
|
||||||
|
echo "Running kaniko command ${kaniko_cmd}"
|
||||||
|
eval "${kaniko_cmd}"
|
||||||
|
|
||||||
echo "image=$IMAGE" >> $GITHUB_OUTPUT
|
echo "image=$IMAGE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
if [ ! -z $INPUT_SKIP_UNCHANGED_DIGEST ]; then
|
if [ ! -z $INPUT_SKIP_UNCHANGED_DIGEST ]; then
|
||||||
|
|
Loading…
Reference in a new issue