Skip to content

Commit d4aa4a7

Browse files
author
haobibo
committed
debug platform build
1 parent 78c76f2 commit d4aa4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jq '.experimental=true | ."data-root"="/mnt/docker"' /etc/docker/daemon.json > /
3131
build_image_no_tag() {
3232
echo "$@" ;
3333
IMG=$1; TAG=$2; FILE=$3; shift 3; WORKDIR="$(dirname $FILE)";
34-
PLATFORM=${DOCKER_PLATFORM:-$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')} ;
34+
PLATFORM=${DOCKER_PLATFORM:-$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')} ;
3535
docker build --compress --force-rm=true --platform "linux/${PLATFORM}" -t "${IMG_PREFIX_DST}/${IMG}:${TAG}" -f "$FILE" --build-arg "BASE_NAMESPACE=${IMG_PREFIX_SRC}" "$@" "${WORKDIR}" ;
3636
}
3737

0 commit comments

Comments
 (0)