Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 2 additions & 52 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ jobs:
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_PRIVATE_KEY }}
script: |
cd ~/ai-server


docker stop ai-server || true
docker rm ai-server || true

Expand All @@ -61,53 +60,4 @@ jobs:
--name ai-server \
--env-file .env \
-p 8000:8000 \
${{ secrets.DOCKER_USERNAME }}/gotcha-ai:latest

notify:
needs: deploy
runs-on: ubuntu-latest



steps:
- name: Slack notification on success
if: success()
uses: slackapi/slack-github-action@v2
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
"text": "✅ *배포 성공:* ${{ github.repository }} 저장소의 `${{ github.ref_name }}` 브랜치가 성공적으로 배포되었습니다.",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Status:* `${{ job.status }}`\n*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n*Actor:* ${{ github.actor }}"
}
}
]
}

- name: Slack notification on failure
if: failure()
uses: slackapi/slack-github-action@v2
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "${{ secrets.SLACK_CHANNEL_ID }}",
"text": "❌ *배포 실패:* ${{ github.repository }} 저장소의 `${{ github.ref_name }}` 브랜치 배포가 실패했습니다.",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Status:* `${{ job.status }}`\n*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n*Actor:* ${{ github.actor }}"
}
}
]
}
${{ secrets.DOCKER_USERNAME }}/gotcha-ai:latest
294 changes: 0 additions & 294 deletions config.py

This file was deleted.

Binary file added models/classifying_model.pth
Binary file not shown.
16 changes: 14 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
fastapi
uvicorn
python-multipart
fastapi
openai
transformers
httpx
Pillow
--extra-index-url https://download.pytorch.org/whl/cpu
torch
torchvision
pydantic
openai
requests
easyocr
numpy
opencv-python-headless
boto3
Loading