From e95107f7d6b7439f77fc14c049938a7013d6fcc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Wed, 13 Aug 2025 22:49:48 +0800 Subject: [PATCH] fix: separate RELEASE tag and VERSION in Docker build (#399) - RELEASE: GitHub release tag without 'v' prefix (e.g., 1.0.0-alpha.42) - VERSION: filename version with 'v' prefix (e.g., v1.0.0-alpha.42) - Download URL uses RELEASE for path, VERSION for filename - Fixes incorrect URL generation that was adding extra 'v' prefix Co-authored-by: Cursor Agent --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 70a1b9d0e..b04e78594 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,9 +37,11 @@ RUN ARCH=$(cat /tmp/arch) && \ DOWNLOAD_URL="$LATEST_RELEASE_URL"; \ else \ # For specific versions, construct the GitHub release URL directly - VERSION="v${RELEASE#v}"; \ + # RELEASE is the GitHub release tag (e.g., "1.0.0-alpha.42") + # VERSION is the version in filename (e.g., "v1.0.0-alpha.42") + VERSION="v${RELEASE}"; \ PACKAGE_NAME="rustfs-linux-${ARCH}-${VERSION}.zip"; \ - DOWNLOAD_URL="https://github.com/rustfs/rustfs/releases/download/${VERSION}/${PACKAGE_NAME}"; \ + DOWNLOAD_URL="https://github.com/rustfs/rustfs/releases/download/${RELEASE}/${PACKAGE_NAME}"; \ fi && \ echo "Downloading ${PACKAGE_NAME} from ${DOWNLOAD_URL}" >&2 && \ curl -f -L "${DOWNLOAD_URL}" -o rustfs.zip && \