Merge pull request 'CI/CD' (#1) from develop into production
Reviewed-on: http://85.208.253.135:3000/sajad-dev/Ai/pulls/1
This commit is contained in:
+16
-16
@@ -59,20 +59,20 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest -q
|
run: pytest -q
|
||||||
|
|
||||||
deploy:
|
# deploy:
|
||||||
name: Deploy AI Service
|
# name: Deploy AI Service
|
||||||
needs: test
|
# needs: test
|
||||||
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/production'
|
# if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/production'
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Deploy via SSH
|
# - name: Deploy via SSH
|
||||||
uses: appleboy/ssh-action@v1
|
# uses: appleboy/ssh-action@v1
|
||||||
with:
|
# with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
# host: ${{ secrets.SSH_HOST }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
# username: ${{ secrets.SSH_USER }}
|
||||||
port: ${{ secrets.SSH_PORT }}
|
# port: ${{ secrets.SSH_PORT }}
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
# key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
script: |
|
# script: |
|
||||||
git pull origin production
|
# git pull origin production
|
||||||
docker compose up -d --build
|
# docker compose up -d --build
|
||||||
|
|||||||
Reference in New Issue
Block a user