fix(GHA): add keys for email and socrates (#66826)

This commit is contained in:
Mrugesh Mohapatra
2026-04-07 12:27:04 +05:30
committed by GitHub
parent 18f87e6051
commit f12b1227b4

View File

@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
api_log_lvl:
description: 'Log level for the API'
description: "Log level for the API"
type: choice
options:
- debug
@@ -12,7 +12,7 @@ on:
- warn
default: info
show_upcoming_changes:
description: 'Show upcoming changes (enables upcoming certifications and challenges)'
description: "Show upcoming changes (enables upcoming certifications and challenges)"
type: boolean
default: false
@@ -128,10 +128,10 @@ jobs:
local machine_name=$1
local max_retries=3
local retry_delay=5
for attempt in $(seq 1 $max_retries); do
echo "Connection attempt $attempt/$max_retries to $machine_name"
if ! tailscale status | grep -q "$machine_name"; then
echo "Machine $machine_name not found in Tailscale network"
if [ $attempt -eq $max_retries ]; then
@@ -140,19 +140,19 @@ jobs:
sleep $retry_delay
continue
fi
MACHINE_IP=$(tailscale ip -4 $machine_name)
if ssh -o ConnectTimeout=10 -o BatchMode=yes $TS_USERNAME@$MACHINE_IP "echo 'Connection test'; docker --version" > /dev/null 2>&1; then
echo "Successfully validated connection to $machine_name"
return 0
fi
echo "SSH validation failed for $machine_name"
if [ $attempt -lt $max_retries ]; then
sleep $retry_delay
fi
done
echo "Failed to establish connection to $machine_name after $max_retries attempts"
return 1
}
@@ -180,10 +180,14 @@ jobs:
# COOKIE_DOMAIN
# SES_ID
# SES_SECRET
# SES_SMTP_USERNAME
# SES_SMTP_PASSWORD
# GROWTHBOOK_FASTIFY_API_HOST
# GROWTHBOOK_FASTIFY_CLIENT_KEY
# HOME_LOCATION
# API_LOCATION
# SOCRATES_API_KEY
# SOCRATES_ENDPOINT
# STRIPE_SECRET_KEY
# LOKI_URL
# Variables set from SetupJob
@@ -247,10 +251,14 @@ jobs:
\"COOKIE_DOMAIN\"
\"SES_ID\"
\"SES_SECRET\"
\"SES_SMTP_USERNAME\"
\"SES_SMTP_PASSWORD\"
\"GROWTHBOOK_FASTIFY_API_HOST\"
\"GROWTHBOOK_FASTIFY_CLIENT_KEY\"
\"HOME_LOCATION\"
\"API_LOCATION\"
\"SOCRATES_API_KEY\"
\"SOCRATES_ENDPOINT\"
\"STRIPE_SECRET_KEY\"
\"LOKI_URL\"
\"DEPLOYMENT_VERSION\"