fix(ci): switch network subnet mapping to 10.199.x.x space to guarantee no overlaps on host
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 37s
Build & Deploy / 🧪 QA (push) Successful in 1m6s
Build & Deploy / 🏗️ Build (push) Successful in 2m15s
Build & Deploy / 🚀 Deploy (push) Successful in 26s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 43s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-05-28 23:23:23 +02:00
parent f74df4e8a2
commit 0138064bcc
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="192.168.220.0/24"
INTERNAL_SUBNET="10.199.10.0/24"
elif [[ "$TARGET" == "testing" ]]; then
INTERNAL_SUBNET="192.168.221.0/24"
INTERNAL_SUBNET="10.199.11.0/24"
elif [[ "$TARGET" == "staging" ]]; then
INTERNAL_SUBNET="192.168.222.0/24"
INTERNAL_SUBNET="10.199.12.0/24"
else
HEX_SHA="${{ needs.prepare.outputs.short_sha }}"
DEC_SHA=$((16#$HEX_SHA))
SUBNET_NUM=$(( 10 + (DEC_SHA % 200) ))
INTERNAL_SUBNET="192.168.${SUBNET_NUM}.0/24"
SUBNET_NUM=$(( 13 + (DEC_SHA % 230) ))
INTERNAL_SUBNET="10.199.${SUBNET_NUM}.0/24"
fi
{

View File

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