mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
revert
This commit is contained in:
parent
70e91da350
commit
f441c7396a
8
build.sh
8
build.sh
@ -8,10 +8,10 @@ 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_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)
|
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
|
if [ "$latest_tag" == "$latest_docker_tag" ]; then
|
||||||
# echo "No new version found"
|
echo "No new version found"
|
||||||
# exit 0
|
exit 0
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
echo "Latest tag for $USER/$REPO matching latest is: $latest_tag"
|
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 --push .
|
||||||
|
Loading…
Reference in New Issue
Block a user