mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 12:48:14 -05:00
11 lines
371 B
Bash
Executable File
11 lines
371 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 the format digit.digit.digit is: $latest_tag"
|
|
|
|
docker build --build-arg TAG="$latest_tag" -t "xubiaolin/zerotier-planet:$latest_tag" .
|