CI/CD
This commit is contained in:
+16
-16
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user