Merge pull request #50 from 4m9d/feat/#49/regulization-answer-format #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sroom-AI-Deploy-Main | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
aws-region: ap-northeast-2 | |
- name: Deploy Main Server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.AWS_SSH_HOST }} | |
username: ubuntu | |
key: ${{ secrets.SSH_SECRET_KEY }} | |
script_stop: true | |
script: | | |
cd sroom-ai/ | |
git pull | |
pip3 install -r requirements.txt | |
tmux send-keys -t celery "^C" C-m | |
tmux send-keys -t server "^C" C-m | |
tmux send-keys -t server "python3 main.py server" C-m | |
tmux send-keys -t celery "celery -A celery_app worker --concurrency=10 -l info" C-m |