统一 musl 全静态构建,规范 Dockerfile 与产物命名
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -323,7 +323,8 @@ main() {
|
||||
[[ "$version" == "latest" ]] && version=$(get_gitea_latest_version)
|
||||
|
||||
local pkg_version="${version#v}" # registry 包版本为数字,去掉可能的 v 前缀
|
||||
download_url="https://${GITEA_SERVER}/api/packages/${GITEA_OWNER}/generic/${PACKAGE_NAME}/${pkg_version}/${PACKAGE_NAME}-$(get_arch)-$os_type-${pkg_version}.tar.gz"
|
||||
# 产物统一为 musl 全静态(linux-static),不再区分 distro;os_type 仅用于下方服务管理(OpenRC/systemd)
|
||||
download_url="https://${GITEA_SERVER}/api/packages/${GITEA_OWNER}/generic/${PACKAGE_NAME}/${pkg_version}/${PACKAGE_NAME}-$(get_arch)-linux-static-${pkg_version}.tar.gz"
|
||||
|
||||
log "$BLUE" "配置信息:"
|
||||
echo " 版本: $version"
|
||||
|
||||
Reference in New Issue
Block a user