fix(ci): switch network subnet mapping to 192.168.x.x space to avoid overlap with host Docker pools
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 46s
Build & Deploy / 🧪 QA (push) Successful in 1m47s
Build & Deploy / 🏗️ Build (push) Successful in 3m24s
Build & Deploy / 🚀 Deploy (push) Failing after 33s
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 5s

This commit is contained in:
2026-05-28 23:14:47 +02:00
parent cf29d0c45a
commit f74df4e8a2
2 changed files with 6 additions and 6 deletions

View File

@@ -307,16 +307,16 @@ jobs:
GATEKEEPER_ORIGIN="${NEXT_PUBLIC_BASE_URL}/gatekeeper"
if [[ "$TARGET" == "production" ]]; then
INTERNAL_SUBNET="172.28.10.0/24"
INTERNAL_SUBNET="192.168.220.0/24"
elif [[ "$TARGET" == "testing" ]]; then
INTERNAL_SUBNET="172.28.11.0/24"
INTERNAL_SUBNET="192.168.221.0/24"
elif [[ "$TARGET" == "staging" ]]; then
INTERNAL_SUBNET="172.28.12.0/24"
INTERNAL_SUBNET="192.168.222.0/24"
else
HEX_SHA="${{ needs.prepare.outputs.short_sha }}"
DEC_SHA=$((16#$HEX_SHA))
SUBNET_NUM=$(( 13 + (DEC_SHA % 230) ))
INTERNAL_SUBNET="172.28.${SUBNET_NUM}.0/24"
SUBNET_NUM=$(( 10 + (DEC_SHA % 200) ))
INTERNAL_SUBNET="192.168.${SUBNET_NUM}.0/24"
fi
{

View File

@@ -112,7 +112,7 @@ networks:
name: ${PROJECT_NAME:-e-tib}-internal
ipam:
config:
- subnet: ${INTERNAL_SUBNET:-172.28.9.0/24}
- subnet: ${INTERNAL_SUBNET:-192.168.219.0/24}
infra:
external: true