From 139b096c047eb304f380b5bfa403e97ff2c3d779 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 14 Dec 2024 17:48:15 +0000 Subject: [PATCH] Fixup --- tests/docker.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/docker.sh b/tests/docker.sh index fb16278de..cb992e850 100755 --- a/tests/docker.sh +++ b/tests/docker.sh @@ -2,6 +2,15 @@ docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD" +has_arm=0 +for f in 192.168.1.2 192.168.69.4; do + if ping -c 1 $f; then + docker buildx create --use --name wp --driver remote tcp://$f:1234 + has_arm=1 + break + fi +done + has_riscv=0 if ping -c 1 192.168.69.206; then docker buildx create --append --name wp --driver remote tcp://192.168.69.206:1234 @@ -17,15 +26,6 @@ for f in 192.168.1.10 192.168.69.236 192.168.69.233 192.168.69.207 192.168.69.13 fi done -has_arm=0 -for f in 192.168.1.2 192.168.69.4; do - if ping -c 1 $f; then - docker buildx create --append --name wp --driver remote tcp://$f:1234 - has_arm=1 - break - fi -done - arches="" if [ $has_x86 -eq 1 ]; then arches="$arches amd64"