Files
Momento/.gitea/workflows/deploy.yaml
Sepehr Ramezani f3b58b32fd
Some checks failed
Deploy to Production / Deploy to 192.168.1.190 (push) Has been cancelled
ci: add deploy script and simplify CI/CD workflow
- scripts/deploy.sh: automated deployment with interactive env setup
  (--env-only, --build, --full)
- Supports OpenRouter, OpenAI, Ollama, DeepSeek providers
- Auto-generates NEXTAUTH_SECRET and postgres password
- Waits for healthchecks, initializes DB, shows status
- CI/CD workflow simplified to call deploy.sh --build

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-21 22:55:15 +02:00

25 lines
588 B
YAML

name: Deploy to Production
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to 192.168.1.190
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.2.2
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
port: ${{ secrets.DEPLOY_PORT || 22 }}
script_stop: true
command_timeout: 10m
script: |
cd ${{ secrets.DEPLOY_PATH }}
bash scripts/deploy.sh --build