docker-zerotier-planet/build.sh
Markxu b3930029d3
支持ARM系统,支持update (#145)
* stash

* no sense

* support arm

* refactorcode

* upgrade

* refactorcode

* format code

---------

Co-authored-by: xubiaolin <xubiaolin2014>
Co-authored-by: Your Name <>
2024-05-19 21:50:59 +08:00

12 lines
435 B
Bash
Executable File

#!/bin/bash
USER=zerotier
REPO=ZeroTierOne
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)
echo "Latest tag for $USER/$REPO matching latest is: $latest_tag"
docker build --build-arg TAG="$latest_tag" -t "xubiaolin/zerotier-planet:$latest_tag" .
docker tag "xubiaolin/zerotier-planet:$latest_tag" "xubiaolin/zerotier-planet:latest"