diff --git a/scripts/docker_push.sh b/scripts/docker_push.sh index 7e8131da02..7f4d0684a9 100755 --- a/scripts/docker_push.sh +++ b/scripts/docker_push.sh @@ -117,7 +117,13 @@ build_image() { ;; esac else - docker buildx build -t "$tag" -f "$2" "$3" --push + if [[ "$tag" == *"amd64" || "$ARCH" == "" || "$ARCH" == "amd64" || "$ARCH" == "x86_64" || "$ARCH" == "x86" ]]; then + docker buildx build -t "$tag" -f "$file" "$path" --push --platform linux/amd64 + elif [[ "$tag" == *"arm64" || "$ARCH" == "arm64" ]]; then + docker buildx build -t "$tag" -f "$file" "$path" --push --platform linux/amd64 + else + docker buildx build -t "$tag" -f "$file" "$path" --push + fi docker pull "$tag" fi }