Add 'tag.sh'
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
quackerd 2022-06-20 01:52:05 +00:00
parent 12ecdd19d4
commit 580bfbc143

8
tag.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
apk add --no-cache jq curl
VER=$(curl -sL https://api.github.com/repos/fatedier/frp/releases/latest | jq -r ".tag_name")
VER="${VER:1}"
echo $VER
echo -n "$VER,latest" > .tags
sed -i -E "s/var_FRP_VERSION/$VER/" Dockerfile