#!/bin/bash
set -e

echo "🚀 Starte Deployment für byHaider-Homepage..."

cd ~/byhaider-homepage

echo "📥 Pull latest changes for byhaider-homepage..."
git pull origin main

echo "🛑 Stoppe alte Container..."
docker compose down

echo "📦 Baue Images neu..."
docker compose build

echo "⬆️ Starte Container..."
docker compose up -d

echo "🧹 Bereinige alte Images..."
docker image prune -f

echo "✅ Deployment abgeschlossen!"
docker compose ps

