From a89bf8380d91f0d7a60a4fece6b0672f64bce2cd Mon Sep 17 00:00:00 2001 From: Remmer Date: Fri, 10 Apr 2026 20:27:02 +0000 Subject: [PATCH] ci: simplify deploy workflow to run directly on VPS host runner --- .gitea/workflows/deploy.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 35adbc7..3acd9d8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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)"