mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-10 20:40:56 +00:00
- Created `mt5/MQL5/Include/ZoloBridge.mqh` for shared, secure (HTTPS) bridge logic with proper JSON sanitization. - Created `ExpertMACD_Enhanced.mq5`, `ExpertMAMA_Enhanced.mq5`, and `ExpertMAPSAR_Enhanced.mq5` using standard library and ZOLO bridge. - Refactored `EXNESS_GenX_Trader.mq5` and `SMC_TrendBreakout_MTF_EA.mq5` to use `ZoloBridge.mqh` and updated default URL to `https://genx-fx.com/api/signal`. - Updated `scripts/deploy_docker_hub.sh` and `scripts/update_vps.sh` to support `DOCKER_USERNAME` and `DOCKER_PASSWORD` environment variables. - Added `scripts/fix_profiles.py` to copy defaults to empty profile directories. - Added `SECRETS_TEMPLATE.md` for credential management guidance. - Updated EA link properties to Forge URL.
34 lines
1.1 KiB
Bash
Executable file
34 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# ============================================================================
|
|
# Docker Hub Deployment Script
|
|
# ============================================================================
|
|
# Builds and pushes the Docker image to Docker Hub.
|
|
# Usage: ./scripts/deploy_docker_hub.sh [USERNAME] [TOKEN/PASSWORD]
|
|
# Alternatively, set DOCKER_USERNAME and DOCKER_PASSWORD env vars.
|
|
# ============================================================================
|
|
|
|
set -e
|
|
|
|
USERNAME=${1:-$DOCKER_USERNAME}
|
|
PASSWORD=${2:-$DOCKER_PASSWORD}
|
|
IMAGE_NAME="mouyleng/mql5-trading-automation"
|
|
TAG="latest"
|
|
|
|
if [ -z "$USERNAME" ] || [ -z "$PASSWORD" ]; then
|
|
echo "Usage: $0 [USERNAME] [TOKEN/PASSWORD]"
|
|
echo "Or set DOCKER_USERNAME and DOCKER_PASSWORD environment variables."
|
|
echo "Example: $0 mouyleng dckr_pat_..."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Logging in to Docker Hub as $USERNAME..."
|
|
echo "$PASSWORD" | docker login -u "$USERNAME" --password-stdin
|
|
|
|
echo "Building Docker image..."
|
|
docker build -t "$IMAGE_NAME:$TAG" .
|
|
|
|
echo "Pushing image to Docker Hub..."
|
|
docker push "$IMAGE_NAME:$TAG"
|
|
|
|
echo "✅ Deployment to Docker Hub complete!"
|
|
echo "Image: $IMAGE_NAME:$TAG"
|