Add LEGACY_NETWORK variable to environment files #13

Merged
kovagoadi merged 12 commits from legacy-network-restriction into main 2025-11-29 19:41:53 +01:00
2 changed files with 3 additions and 11 deletions
Showing only changes of commit 78393c17c6 - Show all commits

View File

@@ -30,6 +30,7 @@ jobs:
pr_path: ${{ steps.calc.outputs.pr_path }}
steps:
- id: calc
name: Prepare Context
run: |
REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
@@ -63,7 +64,7 @@ jobs:
# 2. Run Docker Compose after sync
SCRIPT_AFTER: |
cd ${{ needs.prepare_context.outputs.pr_path }}
docker compose --env-file dev.env -f docker-compose.yaml -f docker-compose.dev.yaml up -d --build --remove-orphans
docker compose --env-file dev.env -f docker-compose.yaml up -d --build --remove-orphans
# ------------------------------------------------------------------
# STAGE 3: DEPLOY STAGING
@@ -114,7 +115,7 @@ jobs:
mkdir -p ${{ env.REMOTE_PROD_PATH }}
SCRIPT_AFTER: |
cd ${{ env.REMOTE_PROD_PATH }}
docker compose --env-file prod.env -f docker-compose.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
# ------------------------------------------------------------------
# CLEANUP (Using appleboy/ssh-action for pure command execution)

View File

@@ -1,9 +0,0 @@
services:
traefik:
networks:
- proxy
- legacy-nginx
networks:
legacy-nginx:
name: proxy
external: true