refactor: Consolidate staging routing with TCP passthrough, relocate E2E tests to production workflow, and remove legacy Nginx configurations.
All checks were successful
Remote Deployment Pipeline / Prepare Context (pull_request) Successful in 3s
Remote Deployment Pipeline / Deploy (Staging) (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Dev/Preview) (pull_request) Successful in 56s
Remote Deployment Pipeline / Cleanup Preview (pull_request) Has been skipped
Remote Deployment Pipeline / Deploy (Production) (pull_request) Has been skipped

This commit is contained in:
2025-12-25 20:35:33 +01:00
parent 26eb1f705f
commit 0b1b1df07d
6 changed files with 32 additions and 113 deletions

View File

@@ -65,16 +65,7 @@ jobs:
SCRIPT_AFTER: |
set -e
cd ${{ needs.prepare_context.outputs.pr_path }}
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans --wait
# Run E2E Tests
echo "Running E2E tests..."
export CI=true
# Create venv to avoid polluting system python
python3 -m venv .venv
. .venv/bin/activate
pip install -r tests/e2e/requirements.txt
pytest tests/e2e/
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans --wait
# ------------------------------------------------------------------
# STAGE 3: DEPLOY STAGING
@@ -100,7 +91,7 @@ jobs:
SCRIPT_AFTER: |
set -e
cd ${{ env.REMOTE_STAGING_PATH }}
docker compose --env-file staging.env -f docker-compose.yaml up -d --build --remove-orphans
docker compose --env-file staging.env -f docker-compose.yaml up -d --build --remove-orphans --wait
# ------------------------------------------------------------------
# STAGE 4: DEPLOY PRODUCTION
@@ -127,7 +118,16 @@ jobs:
SCRIPT_AFTER: |
set -e
cd ${{ env.REMOTE_PROD_PATH }}
docker compose --env-file prod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans
docker compose --env-file prod.env -f docker-compose.yaml -f docker-compose.prod.yaml up -d --build --remove-orphans --wait
# Run E2E Tests
echo "Running E2E tests..."
export CI=true
# Create venv to avoid polluting system python
python3 -m venv .venv
. .venv/bin/activate
pip install -r tests/e2e/requirements.txt
pytest tests/e2e/
# ------------------------------------------------------------------
# CLEANUP (Using appleboy/ssh-action for pure command execution)