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:
parent
8cb2154740
commit
a3f85c6dda
@ -39,19 +39,19 @@ lint:
|
|||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
variables:
|
variables:
|
||||||
CI: "true" # Mark this as a CI run
|
CI: "true" # Mark this as a CI run
|
||||||
ENVIRONMENT: test # Use test environment settings
|
ENVIRONMENT: test # Use test environment settings
|
||||||
PORT: 8081
|
PORT: 8081
|
||||||
script:
|
script:
|
||||||
- echo "Setting up Python dependencies..."
|
- echo "Setting up Python dependencies..."
|
||||||
- source $VIRTUAL_ENV/bin/activate
|
- source $VIRTUAL_ENV/bin/activate
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- echo "Starting the application to test startup with SSL..."
|
- echo "Starting the application to test startup with SSL..."
|
||||||
- cd $CI_PROJECT_DIR/backend # Use GitLab-provided dynamic root path
|
- cd $CI_PROJECT_DIR/backend # Use GitLab-provided dynamic root path
|
||||||
- python -m main # Run the main module dynamically
|
- python -m main # Run the main module dynamically
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user