Commit 1ee572e7 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add temporary diagnostics to deploy_prod: PROD_SERVER_IP still empty

Retried twice after unprotecting the variable, same failure both times -
this checks whether it's specifically PROD_* variables or something
broader (predefined CI_COMMIT_SHORT_SHA came through empty too, which
needs no configuration). Reports presence/length only, never actual
values, so it's safe to leave in a readable log even for the real
secrets. Will be removed once the cause is found.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 596cc12e
Pipeline #1169 failed with stages
in 8 minutes and 11 seconds
...@@ -48,6 +48,15 @@ deploy_prod: ...@@ -48,6 +48,15 @@ deploy_prod:
variables: variables:
STAX_WEBAPP_DEPLOY_DIR: "/var/www/stax_webapp" STAX_WEBAPP_DEPLOY_DIR: "/var/www/stax_webapp"
before_script: before_script:
# Temporary diagnostic - PROD_SERVER_IP resolved empty on the last two attempts even after
# unprotecting it, and oddly so did the predefined CI_COMMIT_SHORT_SHA, which needs no
# configuration at all. Reports presence/length only, never the actual value, so this stays
# safe to leave in a log even for the real secrets. Removed once the real cause is found.
- |
echo "DEBUG: CI_COMMIT_SHORT_SHA='${CI_COMMIT_SHORT_SHA}' CI_PROJECT_NAME='${CI_PROJECT_NAME}' CI_JOB_ID='${CI_JOB_ID}'"
echo "DEBUG: PROD_SERVER_IP set=$([ -n "${PROD_SERVER_IP:-}" ] && echo yes || echo no) len=${#PROD_SERVER_IP}"
echo "DEBUG: PROD_SSH_PRIVATE_KEY set=$([ -n "${PROD_SSH_PRIVATE_KEY:-}" ] && echo yes || echo no) len=${#PROD_SSH_PRIVATE_KEY}"
echo "DEBUG: total env vars visible: $(env | wc -l)"
- apt-get update -qq && apt-get install -y -qq --no-install-recommends openssh-client rsync - apt-get update -qq && apt-get install -y -qq --no-install-recommends openssh-client rsync
# This runner's job containers have a read-only root filesystem - /tmp is the one path # This runner's job containers have a read-only root filesystem - /tmp is the one path
# that's reliably writable regardless, so everything SSH-related lives there instead. # that's reliably writable regardless, so everything SSH-related lives there instead.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment