Skip to content

Commit e2be377

Browse files
chore: restructure project layout
1 parent 7c7b8ed commit e2be377

39 files changed

Lines changed: 39 additions & 1 deletion

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ DATABASE_URL=postgresql://postgres:password@db:5432/devops_platform
33

44
# App
55
APP_ENV=development
6+

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ jobs:
133133
run: |
134134
echo "❌ Deployment failed — rolling back"
135135
kubectl rollout undo deployment/devops-platform -n ${{ env.K8S_NAMESPACE }}
136+

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,4 @@ jobs:
123123
- name: Stop services
124124
if: always()
125125
run: docker compose down -v
126+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ Thumbs.db
3434

3535
# Logs
3636
*.log
37+

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ metrics: ## Show Prometheus metrics (first 20 lines)
5151

5252
clean: ## Remove volumes and containers
5353
docker compose down -v --remove-orphans
54+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,4 @@ DevOps-Platform/
273273
## License
274274

275275
MIT
276+

app/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
2323
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"
2424

2525
CMD ["sh", "-c", "alembic upgrade head && uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2"]
26+

app/alembic.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,4 @@ formatter = generic
147147
[formatter_generic]
148148
format = %(levelname)-5.5s [%(name)s] %(message)s
149149
datefmt = %H:%M:%S
150+

app/auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,4 @@ def get_current_user(token: str = Depends(oauth2_scheme)):
5555
return username
5656
except JWTError:
5757
raise credentials_exception
58+

app/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ def redis_ping() -> bool:
6666
return client.ping()
6767
except Exception:
6868
return False
69+

0 commit comments

Comments
 (0)