mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 00:26:53 +00:00
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:
+3
-11
@@ -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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user