All checks were successful
Deploy Development / deploy (push) Successful in 34s
- Runner runs on same server (192.168.2.49) - No SSH secrets needed - Same pattern as Mitai deployment - Health check on port 8098 (dev) / 8003 (prod)
23 lines
643 B
YAML
23 lines
643 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 Shinkan to PRODUCTION ==="
|
|
cd /home/lars/docker/shinkan
|
|
git fetch origin main || git clone http://192.168.2.144:3000/Lars/shinkan-jinkendo.git .
|
|
git reset --hard origin/main
|
|
docker compose build --no-cache
|
|
docker compose up -d
|
|
sleep 5
|
|
curl -sf http://localhost:8003/api/version && echo "✓ PROD API healthy"
|
|
echo "=== Shinkan PROD Deploy complete ==="
|