ci: simplify deploy workflow to run directly on VPS host runner
All checks were successful
Deploy to VPS / deploy (push) Successful in 56s

This commit is contained in:
2026-04-10 20:27:02 +00:00
parent 94b89cb1e2
commit a89bf8380d

View File

@@ -9,16 +9,14 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: ${{ secrets.VPS_PORT || 22 }}
script: |
cd ${{ secrets.VPS_PROJECT_PATH || '/opt/legalai' }}
git pull origin master
docker compose build app
docker compose up -d app
echo "Deployed commit: $(git rev-parse --short HEAD)"
- name: Pull latest code
run: |
cd /home/remmer/StageAI
git pull origin master
- name: Build and deploy
run: |
cd /home/remmer/StageAI
docker compose build app
docker compose up -d app
echo "Deployed commit: $(git rev-parse --short HEAD)"