Files
bini-shorts-maker/.gitea/workflows/deploy.yaml
kihong.kim 4aa282c11a
Some checks failed
Deploy to Server / deploy (push) Failing after 16m58s
Remove --no-cache from docker build to cache Whisper model
Docker layer caching will now preserve the Whisper model download step,
avoiding 1.5GB download on every deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 20:38:19 +09:00

41 lines
1012 B
YAML

name: Deploy to Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to server via SSH
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd /home/bini/project/bini-shorts-maker
echo "=== Pulling latest code ==="
git fetch origin
git reset --hard origin/main
echo "=== Rebuilding Docker containers ==="
docker compose build
echo "=== Restarting containers ==="
docker compose down
docker compose up -d
echo "=== Cleaning up old images ==="
docker image prune -f
echo "=== Deployment completed ==="
docker compose ps