docker-frp/tag.sh

8 lines
233 B
Bash
Raw Normal View History

2022-06-20 01:52:05 +00:00
#!/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