fix: set IFS temporarily

This commit is contained in:
ThetaDev
2024-03-03 00:18:05 +01:00
parent 0205d1bb63
commit 464643883d

View File

@@ -74,10 +74,9 @@ crane auth login "$REGISTRY" -u "$USERNAME" -p "$PASSWORD"
runKaniko() {
# https://github.com/GoogleContainerTools/kaniko/issues/1803
# https://github.com/GoogleContainerTools/kaniko/issues/1349
IFS=''
kaniko_cmd="executor ${1} --reproducible --force"
echo "Running kaniko command: ${kaniko_cmd}"
eval "${kaniko_cmd}"
IFS='' eval "${kaniko_cmd}"
}
if [ -n "$INPUT_PLATFORMS" ]; then
@@ -114,7 +113,7 @@ if [ -n "$INPUT_PLATFORMS" ]; then
fi
manifest_cmd="crane index append $TAGS $DIGESTS"
echo "building manifest: $manifest_cmd"
echo "Building manifest: $manifest_cmd"
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
else
# Build and push image for the default platform