Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
90710fc
[deploy] 메인 브랜치 배포 준비 완료
ZinYan Aug 8, 2025
6da6ea4
[deploy] 세팅 추가
ZinYan Aug 8, 2025
85bb87e
[deploy] 세팅 추가
ZinYan Aug 8, 2025
ad97a77
[deploy] collect static files
ZinYan Aug 8, 2025
6ffd59d
[ci] 배포 워크플로우 추가
ZinYan Aug 9, 2025
527b149
[ci/cd] 배포 워크플로우 추가
ZinYan Aug 9, 2025
dbb16ea
Merge branch 'main' of https://github.com/pirogramming/Moodico
ZinYan Aug 9, 2025
dd7285d
[deploy]테스트용 secret-key 추가
ZinYan Aug 9, 2025
f9e9afe
[deploy] 세팅 수정
ZinYan Aug 9, 2025
3c3bdc8
[deploy] 세팅 수정
ZinYan Aug 9, 2025
168b975
[deploy] ssh key 수정
ZinYan Aug 9, 2025
eb338b4
[deploy] ssh key 수정
ZinYan Aug 9, 2025
31fd0a0
[deploy] ssh key 수정
ZinYan Aug 9, 2025
386e7ee
[deploy] ssh key 수정
ZinYan Aug 9, 2025
20ad272
[deploy] ssh key 수정
ZinYan Aug 9, 2025
9afdd9f
[deploy] ssh key 수정
ZinYan Aug 9, 2025
dcbfa10
[deploy] ssh key 수정
ZinYan Aug 9, 2025
857a36f
[deploy] ssh key 수정
ZinYan Aug 9, 2025
a3a70ec
[deploy] ssh key 수정
ZinYan Aug 9, 2025
233a67d
[deploy] 최종 수정
ZinYan Aug 9, 2025
b6466dd
[deploy] 최종 수정
ZinYan Aug 9, 2025
dd98c9b
[deploy] SSL 부분 수정
ZinYan Aug 9, 2025
e19080c
[feat] 세팅 변경
ZinYan Aug 9, 2025
1c3c19a
Merge branch 'main' into main-test
ZinYan Aug 9, 2025
1a9b704
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 10, 2025
163ff97
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 10, 2025
63b284d
[deploy] main-test 브랜치도 서버에 반영되도록 수정
ZinYan Aug 10, 2025
e1534a9
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 10, 2025
fc34755
[deploy] static 파일 경로 변경
ZinYan Aug 10, 2025
378f953
[deploy] static 파일 경로 변경
ZinYan Aug 10, 2025
8f42dfe
[feat] 제품 스크래핑 및 클러스터 생성 management command 추가
ZinYan Aug 10, 2025
8bb67fa
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 10, 2025
c8f6eca
[fix] 버그 수정
ZinYan Aug 12, 2025
45ac466
[fix] 서버쪽 버그 수정
ZinYan Aug 12, 2025
ecbc7de
[fix] github actions 위해 dummy_key 추가
ZinYan Aug 12, 2025
6434cd5
[feat] 스토리지 추가하고 지움
ZinYan Aug 13, 2025
79b47a6
[deploy] media로 경로 변경
ZinYan Aug 13, 2025
88f02a1
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 13, 2025
a6f540e
[fix] 버그 고침
ZinYan Aug 13, 2025
d0342f8
[feat] product_id로 연결
ZinYan Aug 14, 2025
76acc35
Merge branch 'develop' of https://github.com/pirogramming/Moodico int…
ZinYan Aug 15, 2025
0654c35
[deploy] 배포위한 세팅 수정
ZinYan Aug 15, 2025
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
70 changes: 70 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Django CI/CD

on:
workflow_dispatch:
push:
branches: ["main", "main-test"]
pull_request:
branches: ["main"]

concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run tests
run: |
python manage.py test

deploy:
runs-on: ubuntu-latest
needs: test
if: (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main-test')) || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4

- name: Deploy to server
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ubuntu
key: ${{ secrets.KEY }}
script: |
set -e
BRANCH="${{ github.ref_name }}"
echo "Deploying branch: $BRANCH"

sudo chown -R ubuntu:ubuntu /home/ubuntu/Moodico
sudo git config --system --add safe.directory /home/ubuntu/Moodico

cd /home/ubuntu/Moodico
git fetch origin "$BRANCH"
git reset --hard "origin/$BRANCH"

source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python manage.py migrate --noinput
python manage.py collectstatic --noinput

sudo systemctl restart gunicorn
sudo systemctl reload nginx
119 changes: 0 additions & 119 deletions clustering/generate_clusters.py

This file was deleted.

156 changes: 0 additions & 156 deletions crawler/color_extract.py

This file was deleted.

Loading