refactor: reorganize project structure for better maintainability

- Move Docker files to build/docker/
- Move CI/CD configs to build/ci/
- Move deployment configs to deploy/ (helm, k8s, argocd)
- Move config files to config/
- Move scripts to tools/
- Consolidate assets to assets/ (Reflex compatible)
- Add data/ directory for local data (gitignored)
- Update all path references in Makefile, Dockerfile, CI configs
- Add comprehensive README files for build/ and deploy/
- Update project documentation

Benefits:
- Clear separation of concerns
- Cleaner root directory
- Better developer experience
- Enterprise-grade structure
- Improved maintainability
This commit is contained in:
Ehsan.Asadi
2025-12-30 21:20:32 +03:30
parent 954387a8cf
commit 6820f0ee4f
45 changed files with 1737 additions and 361 deletions

46
build/ci/woodpecker.yml Normal file
View File

@@ -0,0 +1,46 @@
pipeline:
publish_landing:
image: woodpeckerci/plugin-docker-buildx
settings:
# تنظیمات ریجیستری Harbor
registry: hub.peikarband.ir
repo: hub.peikarband.ir/peikarband/landing
username:
from_secret: HARBOR_USERNAME
password:
from_secret: HARBOR_PASSWORD
# تگ‌گذاری
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
dockerfile: build/docker/Dockerfile
context: .
platforms: linux/amd64
build_args:
- VERSION=${CI_COMMIT_SHA:0:8}
- BUILD_DATE=${CI_PIPELINE_CREATED}
- PYTHON_VERSION=3.11
- NODE_VERSION=20
labels:
- org.opencontainers.image.created=${CI_PIPELINE_CREATED}
- org.opencontainers.image.source=${CI_REPO_LINK}
- org.opencontainers.image.url=${CI_REPO_LINK}
- org.opencontainers.image.revision=${CI_COMMIT_SHA}
- org.opencontainers.image.version=${CI_COMMIT_SHA:0:8}
- org.opencontainers.image.title=Peikarband Landing
- org.opencontainers.image.description=Peikarband hosting platform landing page
cache: inline
provenance: true
push: true
when:
- event: [push, tag, manual]
branch: main # معمولاً فقط روی برنچ اصلی پوش انجام می‌شود
timeout: 30m