From f12b1227b45b0b1100e2ee82543872cd22f00a21 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:27:04 +0530 Subject: [PATCH] fix(GHA): add keys for email and socrates (#66826) --- .github/workflows/deploy-api.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index 646cd1b3896..7cef2416ccc 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -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\"