Some checks failed
Test Suite / pytest-backend (push) Waiting to run
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Waiting to run
Test Suite / playwright-smoke (push) Waiting to run
Deploy Development / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
name: Deploy Development
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to Development
|
|
run: |
|
|
set -e
|
|
echo "=== Deploying Kairo to DEVELOPMENT ==="
|
|
REPO="http://192.168.2.144:3000/Lars/Kairo-Jinkendo.git"
|
|
TARGET="/home/lars/docker/kairo-dev"
|
|
mkdir -p "$TARGET"
|
|
cd "$TARGET"
|
|
if [ ! -d .git ]; then
|
|
git clone -b develop "$REPO" .
|
|
else
|
|
git fetch origin develop
|
|
git checkout develop
|
|
git reset --hard origin/develop
|
|
fi
|
|
docker compose -f docker-compose.dev-env.yml build --no-cache backend frontend
|
|
echo "✓ Backend + Frontend gebaut (Frontend: npm run build im Dockerfile)"
|
|
docker compose -f docker-compose.dev-env.yml up -d --wait
|
|
if ! curl -sf http://localhost:8097/api/health; then
|
|
echo "✗ DEV API nicht erreichbar — Backend-Logs:"
|
|
docker compose -f docker-compose.dev-env.yml logs backend --tail 120 || true
|
|
exit 1
|
|
fi
|
|
echo "✓ DEV API /api/health OK"
|
|
curl -sf http://localhost:3097/api/health && echo "✓ DEV Frontend-Proxy /api/health OK"
|
|
echo "=== Kairo DEV Deploy complete ==="
|