mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 10:43:15 +00:00
fix: correct Docker build logic for dev version downloads (#237)
This commit is contained in:
+7
-2
@@ -42,11 +42,16 @@ RUN . /build/arch.env && \
|
|||||||
DOWNLOAD_URL="${BASE_URL}/release/${PACKAGE_NAME}"; \
|
DOWNLOAD_URL="${BASE_URL}/release/${PACKAGE_NAME}"; \
|
||||||
echo "📥 Downloading latest release build: ${PACKAGE_NAME}"; \
|
echo "📥 Downloading latest release build: ${PACKAGE_NAME}"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
elif [ "${CHANNEL}" = "dev" ]; then \
|
||||||
|
# Download specific dev version \
|
||||||
|
PACKAGE_NAME="rustfs-${PLATFORM}-${ARCH}-${RELEASE}.zip"; \
|
||||||
|
DOWNLOAD_URL="${BASE_URL}/dev/${PACKAGE_NAME}"; \
|
||||||
|
echo "📥 Downloading specific dev version: ${PACKAGE_NAME}"; \
|
||||||
else \
|
else \
|
||||||
# Download specific version (always from release channel) \
|
# Download specific release version \
|
||||||
PACKAGE_NAME="rustfs-${PLATFORM}-${ARCH}-v${RELEASE}.zip"; \
|
PACKAGE_NAME="rustfs-${PLATFORM}-${ARCH}-v${RELEASE}.zip"; \
|
||||||
DOWNLOAD_URL="${BASE_URL}/release/${PACKAGE_NAME}"; \
|
DOWNLOAD_URL="${BASE_URL}/release/${PACKAGE_NAME}"; \
|
||||||
echo "📥 Downloading specific version: ${PACKAGE_NAME}"; \
|
echo "📥 Downloading specific release version: ${PACKAGE_NAME}"; \
|
||||||
fi && \
|
fi && \
|
||||||
echo "🔗 Download URL: ${DOWNLOAD_URL}" && \
|
echo "🔗 Download URL: ${DOWNLOAD_URL}" && \
|
||||||
curl -f -L "${DOWNLOAD_URL}" -o /build/rustfs.zip && \
|
curl -f -L "${DOWNLOAD_URL}" -o /build/rustfs.zip && \
|
||||||
|
|||||||
Reference in New Issue
Block a user