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
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:
@@ -307,16 +307,16 @@ jobs:
|
|||||||
GATEKEEPER_ORIGIN="${NEXT_PUBLIC_BASE_URL}/gatekeeper"
|
GATEKEEPER_ORIGIN="${NEXT_PUBLIC_BASE_URL}/gatekeeper"
|
||||||
|
|
||||||
if [[ "$TARGET" == "production" ]]; then
|
if [[ "$TARGET" == "production" ]]; then
|
||||||
INTERNAL_SUBNET="172.28.10.0/24"
|
INTERNAL_SUBNET="192.168.220.0/24"
|
||||||
elif [[ "$TARGET" == "testing" ]]; then
|
elif [[ "$TARGET" == "testing" ]]; then
|
||||||
INTERNAL_SUBNET="172.28.11.0/24"
|
INTERNAL_SUBNET="192.168.221.0/24"
|
||||||
elif [[ "$TARGET" == "staging" ]]; then
|
elif [[ "$TARGET" == "staging" ]]; then
|
||||||
INTERNAL_SUBNET="172.28.12.0/24"
|
INTERNAL_SUBNET="192.168.222.0/24"
|
||||||
else
|
else
|
||||||
HEX_SHA="${{ needs.prepare.outputs.short_sha }}"
|
HEX_SHA="${{ needs.prepare.outputs.short_sha }}"
|
||||||
DEC_SHA=$((16#$HEX_SHA))
|
DEC_SHA=$((16#$HEX_SHA))
|
||||||
SUBNET_NUM=$(( 13 + (DEC_SHA % 230) ))
|
SUBNET_NUM=$(( 10 + (DEC_SHA % 200) ))
|
||||||
INTERNAL_SUBNET="172.28.${SUBNET_NUM}.0/24"
|
INTERNAL_SUBNET="192.168.${SUBNET_NUM}.0/24"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ networks:
|
|||||||
name: ${PROJECT_NAME:-e-tib}-internal
|
name: ${PROJECT_NAME:-e-tib}-internal
|
||||||
ipam:
|
ipam:
|
||||||
config:
|
config:
|
||||||
- subnet: ${INTERNAL_SUBNET:-172.28.9.0/24}
|
- subnet: ${INTERNAL_SUBNET:-192.168.219.0/24}
|
||||||
infra:
|
infra:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user