1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-04-19 16:58:13 +02:00

fix: entrypoint ARGS remove new line

This commit is contained in:
ykyr 2024-03-07 21:27:08 +01:00 committed by GitHub
parent 16c18d6aee
commit e8c4615cfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,6 +94,8 @@ EOF
# https://github.com/GoogleContainerTools/kaniko/issues/1803
# https://github.com/GoogleContainerTools/kaniko/issues/1349
export IFS=''
# Removes a trailing new line
ARGS=$(echo "${ARGS}" | sed 's/\n*$//')
kaniko_cmd="/kaniko/executor ${ARGS} --reproducible --force"
echo "Running kaniko command ${kaniko_cmd}"
eval "${kaniko_cmd}"