Files
Palmr/infra/build-docker.sh
Daniel Luiz Alves ab071916b8 feat: enhance SMTP configuration options in settings
- Added new fields for smtpSecure and smtpNoAuth in the email settings, allowing users to specify the connection security method and disable authentication for internal servers.
- Updated the EmailService to handle the new configuration options, improving flexibility in SMTP setup.
- Enhanced the UI components to include the new fields, ensuring proper user interaction and validation.
- Updated translation files to include descriptions and titles for the new SMTP settings, improving localization support.
2025-06-24 11:15:44 -03:00

43 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Ask for tag interactively
echo "🏷️ Please enter a tag for the build (e.g., v1.0.0, production, beta):"
read -p "Tag: " TAG
# Check if tag was provided
if [ -z "$TAG" ]; then
echo "❌ Error: Tag cannot be empty"
echo "Please run the script again and provide a valid tag"
exit 1
fi
echo "🚀 Building Palmr Unified Image for AMD64 and ARM..."
echo "📦 Building tags: latest and $TAG"
# Ensure buildx is available and create/use a builder instance
docker buildx create --name palmr-builder --use 2>/dev/null || docker buildx use palmr-builder
# Build the unified image for multiple platforms without cache
docker buildx build \
--platform linux/amd64,linux/arm64 \
--no-cache \
-t kyantech/palmr:latest \
-t kyantech/palmr:$TAG \
--push \
.
if [ $? -eq 0 ]; then
echo "✅ Multi-platform build completed successfully!"
echo ""
echo "Built for platforms: linux/amd64, linux/arm64"
echo "Built tags: palmr:latest and palmr:$TAG"
echo ""
echo "Access points:"
echo "- API: http://localhost:3333"
echo "- Web App: http://localhost:5487"
echo ""
echo "Read the docs for more information"
else
echo "❌ Build failed!"
exit 1
fi