bash 脚本或者 Dockerfile需要从github下载最新版的文件。
或者最新版信息:
https://api.github.com/repos/{owner}/{repo}/releases/latest
比如adguardhome:
https://api.github.com/repos/AdguardTeam/AdGuardHome/releases/latest
# 获取最新版本号 tag_name=`curl -s https://api.github.com/repos/AdguardTeam/AdGuardHome/releases/latest | grep tag_name|cut -f4 -d "\""` # 最新版地址: https://github.com/AdguardTeam/AdGuardHome/releases/download/$tag_name/AdGuardHome_linux_amd64.tar.gz