feat: change Docker build to download from GitHub releases instead of dl.rustfs.com (#398)

- Modified Dockerfile to download pre-built binaries from GitHub releases
- For latest releases, use GitHub API to find the correct download URL
- For specific versions, construct the GitHub release URL directly
- Updated docker-buildx.sh script messages to reflect new download source
- This change addresses security concerns about potential tampering with binaries from dl.rustfs.com

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
安正超
2025-08-13 22:00:41 +08:00
committed by GitHub
parent 2c7366038e
commit a693cb52f3
2 changed files with 15 additions and 15 deletions
+3 -11
View File
@@ -150,11 +150,7 @@ build_and_push() {
else
print_message $RED "❌ Failed to build latest variant"
print_message $YELLOW "💡 Note: Make sure rustfs binaries are available at:"
if [ "$CHANNEL" = "dev" ]; then
print_message $YELLOW " https://dl.rustfs.com/artifacts/rustfs/dev/"
else
print_message $YELLOW " https://dl.rustfs.com/artifacts/rustfs/release/"
fi
print_message $YELLOW " https://github.com/rustfs/rustfs/releases"
exit 1
fi
@@ -183,11 +179,7 @@ build_and_push() {
else
print_message $RED "❌ Failed to build release variant"
print_message $YELLOW "💡 Note: Make sure rustfs binaries are available at:"
if [ "$CHANNEL" = "dev" ]; then
print_message $YELLOW " https://dl.rustfs.com/artifacts/rustfs/dev/"
else
print_message $YELLOW " https://dl.rustfs.com/artifacts/rustfs/release/"
fi
print_message $YELLOW " https://github.com/rustfs/rustfs/releases"
exit 1
fi
else
@@ -248,7 +240,7 @@ done
# Main execution
main() {
print_message $BLUE "🐳 RustFS Docker Buildx Build Script"
print_message $YELLOW "📋 Build Strategy: Uses pre-built binaries from dl.rustfs.com"
print_message $YELLOW "📋 Build Strategy: Uses pre-built binaries from GitHub Releases"
print_message $YELLOW "🚀 Production images only - optimized for distribution"
echo ""