mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 18:51:43 +00:00
fix: set IFS temporarily
This commit is contained in:
@@ -74,10 +74,9 @@ crane auth login "$REGISTRY" -u "$USERNAME" -p "$PASSWORD"
|
|||||||
runKaniko() {
|
runKaniko() {
|
||||||
# https://github.com/GoogleContainerTools/kaniko/issues/1803
|
# https://github.com/GoogleContainerTools/kaniko/issues/1803
|
||||||
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
# https://github.com/GoogleContainerTools/kaniko/issues/1349
|
||||||
IFS=''
|
|
||||||
kaniko_cmd="executor ${1} --reproducible --force"
|
kaniko_cmd="executor ${1} --reproducible --force"
|
||||||
echo "Running kaniko command: ${kaniko_cmd}"
|
echo "Running kaniko command: ${kaniko_cmd}"
|
||||||
eval "${kaniko_cmd}"
|
IFS='' eval "${kaniko_cmd}"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -n "$INPUT_PLATFORMS" ]; then
|
if [ -n "$INPUT_PLATFORMS" ]; then
|
||||||
@@ -114,7 +113,7 @@ if [ -n "$INPUT_PLATFORMS" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
manifest_cmd="crane index append $TAGS $DIGESTS"
|
manifest_cmd="crane index append $TAGS $DIGESTS"
|
||||||
echo "building manifest: $manifest_cmd"
|
echo "Building manifest: $manifest_cmd"
|
||||||
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
IMAGE_TAG_DIGEST=$(eval "$manifest_cmd")
|
||||||
else
|
else
|
||||||
# Build and push image for the default platform
|
# Build and push image for the default platform
|
||||||
|
|||||||
Reference in New Issue
Block a user