mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-29 16:37:07 +00:00
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 <cursoragent@cursor.com>
This commit is contained in:
+4
-2
@@ -37,9 +37,11 @@ RUN ARCH=$(cat /tmp/arch) && \
|
|||||||
DOWNLOAD_URL="$LATEST_RELEASE_URL"; \
|
DOWNLOAD_URL="$LATEST_RELEASE_URL"; \
|
||||||
else \
|
else \
|
||||||
# For specific versions, construct the GitHub release URL directly
|
# 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"; \
|
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 && \
|
fi && \
|
||||||
echo "Downloading ${PACKAGE_NAME} from ${DOWNLOAD_URL}" >&2 && \
|
echo "Downloading ${PACKAGE_NAME} from ${DOWNLOAD_URL}" >&2 && \
|
||||||
curl -f -L "${DOWNLOAD_URL}" -o rustfs.zip && \
|
curl -f -L "${DOWNLOAD_URL}" -o rustfs.zip && \
|
||||||
|
|||||||
Reference in New Issue
Block a user