fixing bugs with ci pipeline

This commit is contained in:
GotthardG
2024-12-16 14:23:10 +01:00
parent d6ac89b5d8
commit 1ecbe97955
2 changed files with 25 additions and 15 deletions

View File

@ -43,18 +43,18 @@ deploy:
only:
- main
variables:
PORT: 8081 # Set the port to run the application on
ENVIRONMENT: test # Set the environment to test
CI: "true" # Mark this as a CI run
ENVIRONMENT: dev # Use dev environment settings
PORT: 8081 # Set the port for the application
script:
- echo "Updating repository..."
- git pull origin main # Update the repository with the latest code
- echo "Setting up Python dependencies..."
- echo "Setting up dependencies..."
- source $VIRTUAL_ENV/bin/activate
- pip install -r requirements.txt # Install the required Python dependencies
- bash ./make_openapi_client.sh # Re-generate OpenAPI client library
- echo "Running the application on port $PORT..."
- pip install -r requirements.txt
- echo "Verifying SSL files..."
- ls ssl/ # Ensure dev SSL certificates are present
- echo "Running the application with dev SSL certificates on port $PORT..."
- cd backend
- python3.8 -m main # The app will now use $PORT for binding
- python3.8 -m main
release:
stage: release