Some checks failed
Test Suite / lint-backend (push) Waiting to run
Test Suite / build-frontend (push) Waiting to run
Test Suite / k6 /health Baseline (push) Waiting to run
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Failing after 1s
Test Suite / pytest-backend (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
763 B
YAML
24 lines
763 B
YAML
name: Deploy Production
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to Production
|
|
run: |
|
|
set -e
|
|
echo "=== Deploying Kairo to PRODUCTION ==="
|
|
cd /home/lars/docker/kairo
|
|
git fetch origin main || git clone http://192.168.2.144:3000/Lars/Kairo-Jinkendo.git .
|
|
git reset --hard origin/main
|
|
docker compose build --no-cache
|
|
docker compose up -d
|
|
sleep 5
|
|
curl -sf http://localhost:8004/api/version && echo "✓ PROD API (direkt) healthy"
|
|
curl -sf http://localhost:3004/api/version && echo "✓ PROD API über Frontend-Nginx (wie Browser) healthy"
|
|
echo "=== Kairo PROD Deploy complete ==="
|