Sync project metadata with pyproject.toml

Updated scripts and backend to dynamically retrieve project name and version from `pyproject.toml`. This ensures consistent metadata across the OpenAPI client generation and the FastAPI application.
This commit is contained in:
GotthardG
2024-12-17 11:54:32 +01:00
parent 7d6168a197
commit 8cb2154740
3 changed files with 30 additions and 35 deletions

View File

@ -39,22 +39,19 @@ lint:
exit 0;
}
deploy:
stage: deploy
only:
- main
variables:
CI: "true" # Mark this as a CI run
ENVIRONMENT: test # Use test environment settings
PORT: 8081
script:
- echo "Setting up Python dependencies..."
- source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt
- echo "Starting the application to test startup with SSL..."
- cd backend
- python -m main # App will start, validate, and exit
- echo "Application startup validation completed successfully."
deploy:
stage: deploy
variables:
CI: "true" # Mark this as a CI run
ENVIRONMENT: test # Use test environment settings
PORT: 8081
script:
- echo "Setting up Python dependencies..."
- source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt
- echo "Starting the application to test startup with SSL..."
- cd $CI_PROJECT_DIR/backend # Use GitLab-provided dynamic root path
- python -m main # Run the main module dynamically
release:
stage: release