Skip to content

Commit d780306

Browse files
authored
Merge pull request #79 from Qualcomm-Capstone/develop
Release: develop → main 통합
2 parents 0b4b613 + a688308 commit d780306

139 files changed

Lines changed: 10213 additions & 596 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
*.egg-info/
8+
dist/
9+
build/
10+
11+
# Virtual Environment
12+
venv/
13+
env/
14+
ENV/
15+
.venv
16+
17+
# IDE
18+
.vscode/
19+
.idea/
20+
*.swp
21+
*.swo
22+
*~
23+
24+
# Environment variables
25+
*.env
26+
.env.*
27+
backend.env
28+
29+
# Credentials (실제 인증 파일 - 민감 정보)
30+
credentials/*.json
31+
!credentials/*.example.json
32+
crud/fcm/*.json
33+
!crud/fcm/*.example.json
34+
35+
# Database
36+
*.sqlite3
37+
*.db
38+
39+
# Media files (uploaded content)
40+
media/
41+
static/
42+
43+
# Logs
44+
*.log
45+
logs/
46+
47+
# Celery
48+
celerybeat-schedule
49+
celerybeat.pid
50+
51+
# Git
52+
.git/
53+
54+
# Docker (수정 허용)
55+
56+
# Cache
57+
.cache/
58+
.pytest_cache/
59+
60+
# Coverage
61+
htmlcov/
62+
.coverage
63+
.coverage.*
64+
coverage.xml
65+
66+
# OS
67+
.DS_Store
68+
Thumbs.db
69+
70+
# Migrations (optional - 주석 해제하면 migration 파일도 무시)
71+
# */migrations/*.py
72+
# !*/migrations/__init__.py
73+

.dockerignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Git
2+
.git/
3+
.gitignore
4+
5+
# Python
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
*.so
10+
.Python
11+
*.egg-info/
12+
dist/
13+
build/
14+
15+
# Virtual Environment
16+
venv/
17+
env/
18+
ENV/
19+
.venv/
20+
21+
# IDE
22+
.vscode/
23+
.idea/
24+
*.swp
25+
*.swo
26+
*~
27+
28+
# Environment files (런타임에 주입)
29+
*.env
30+
.env.*
31+
backend.env
32+
33+
# Credentials - 빌드 시 제외 (런타임에 볼륨 마운트)
34+
credentials/*.json
35+
!credentials/*.example.json
36+
crud/fcm/*.json
37+
38+
# Database
39+
*.sqlite3
40+
*.db
41+
42+
# Media files
43+
media/
44+
45+
# Logs
46+
*.log
47+
logs/
48+
49+
# Cache
50+
.cache/
51+
.pytest_cache/
52+
53+
# Coverage
54+
htmlcov/
55+
.coverage
56+
.coverage.*
57+
coverage.xml
58+
59+
# OS
60+
.DS_Store
61+
Thumbs.db
62+
63+
# Documentation (이미지 빌드에 불필요)
64+
docs/
65+
*.md
66+
!README.md
67+
68+
# Tests (프로덕션 이미지에 불필요한 경우)
69+
# tests/
70+
# *_test.py
71+
# test_*.py
72+
73+
# Docker
74+
Dockerfile*
75+
docker-compose*.yml

.github/workflows/backend-ci.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/docker-build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Docker Build
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
concurrency:
10+
group: docker-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
name: ${{ matrix.service.name }}
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
service:
22+
- name: main
23+
dockerfile: docker/Dockerfile.main
24+
- name: ocr
25+
dockerfile: docker/Dockerfile.ocr
26+
- name: alert
27+
dockerfile: docker/Dockerfile.alert
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
36+
- name: Build ${{ matrix.service.name }} image
37+
uses: docker/build-push-action@v6
38+
with:
39+
context: .
40+
file: ${{ matrix.service.dockerfile }}
41+
push: false
42+
cache-from: type=gha,scope=${{ matrix.service.name }}
43+
cache-to: type=gha,mode=max,scope=${{ matrix.service.name }}
44+
tags: speedcam/${{ matrix.service.name }}:ci-${{ github.sha }}

.github/workflows/lint.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
concurrency:
10+
group: lint-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
name: Code Quality
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python 3.12
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.12"
26+
27+
- name: Cache pip
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-lint-${{ hashFiles('requirements/dev.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-lint-
34+
35+
- name: Install lint dependencies
36+
run: pip install flake8==7.1.1 black==24.10.0 isort==5.13.2
37+
38+
- name: Run flake8
39+
run: flake8 . --count --show-source --statistics
40+
41+
- name: Run black (check)
42+
run: black --check --diff --exclude='/(\.venv|migrations)/' .
43+
44+
- name: Run isort (check)
45+
run: isort --check-only --diff --profile black --skip .venv --skip migrations .

0 commit comments

Comments
 (0)