From 88cb38b75864c2f7c8ed173255d40e23b25d4bee Mon Sep 17 00:00:00 2001 From: xubiaolin Date: Thu, 26 Sep 2024 21:18:56 +0800 Subject: [PATCH] addarm7 --- build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index 2e353d1..0cb3bc2 100755 --- a/build.sh +++ b/build.sh @@ -8,11 +8,11 @@ DOCKER_IMAGE="xubiaolin/zerotier-planet" latest_tag=$(curl -s "https://api.github.com/repos/$USER/$REPO/tags" | jq -r '.[].name' | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" | sort -V | tail -n 1) latest_docker_tag=$(curl -s "https://hub.docker.com/v2/repositories/${DOCKER_IMAGE}/tags/" | jq -r '.results[].name' | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" | sort -V | tail -n 1) -if [ "$latest_tag" == "$latest_docker_tag" ]; then - echo "No new version found" - exit 0 -fi +#if [ "$latest_tag" == "$latest_docker_tag" ]; then +# echo "No new version found" +# exit 0 +#fi echo "Latest tag for $USER/$REPO matching latest is: $latest_tag" -docker buildx build --platform linux/arm64,linux/amd64 -t "$DOCKER_IMAGE":latest --push . -docker buildx build --platform linux/arm64,linux/amd64 -t "${DOCKER_IMAGE}:${latest_tag}" --push . +docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7 -t "$DOCKER_IMAGE":latest --push . +docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7-t "${DOCKER_IMAGE}:${latest_tag}" --push .