This commit is contained in:
2026-03-20 02:45:41 +03:30
parent 529964f6f2
commit 7f20611617
+16 -16
View File
@@ -59,20 +59,20 @@ jobs:
- name: Run tests
run: pytest -q
deploy:
name: Deploy AI Service
needs: test
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/production'
runs-on: ubuntu-latest
# deploy:
# name: Deploy AI Service
# needs: test
# if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/production'
# runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
git pull origin production
docker compose up -d --build
# steps:
# - name: Deploy via SSH
# uses: appleboy/ssh-action@v1
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USER }}
# port: ${{ secrets.SSH_PORT }}
# key: ${{ secrets.SSH_PRIVATE_KEY }}
# script: |
# git pull origin production
# docker compose up -d --build