feat: initial commit – Mitai Jinkendo v9a
This commit is contained in:
commit
89b6c0b072
51 files changed
+9458
No files matched your search
@@ -0,0 +1,38 @@
|
||||
name: Deploy to Raspberry Pi
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Deploy via SSH
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
script: |
|
||||
set -e
|
||||
cd /home/lars/docker/mitai
|
||||
|
||||
echo "=== Pulling latest code ==="
|
||||
git pull origin main
|
||||
|
||||
echo "=== Rebuilding containers ==="
|
||||
docker compose build --no-cache
|
||||
|
||||
echo "=== Restarting ==="
|
||||
docker compose up -d
|
||||
|
||||
echo "=== Health check ==="
|
||||
sleep 5
|
||||
docker ps | grep jinkendo
|
||||
curl -sf http://localhost:8002/api/auth/status | python3 -c "import sys,json; d=json.load(sys.stdin); print('✓ API healthy')" || echo "⚠ API check failed"
|
||||
|
||||
echo "=== Deploy complete ==="
|
||||
@@ -0,0 +1,33 @@
|
||||
name: Build Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, develop]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install & Build
|
||||
working-directory: ./frontend
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: Check build output
|
||||
run: ls -la frontend/dist/
|
||||
|
||||
lint-backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Check syntax
|
||||
run: python3 -m py_compile backend/main.py && echo "✓ Backend syntax OK"
|
||||
Reference in new issue
Block a user