fix: prevent accidental rebuild-cluster in CI by defaulting to 'none' when kubeconfig is missing
Homelab Main / validate (push) Successful in 18s Details
Homelab Main / deploy (push) Successful in 12s Details

This commit is contained in:
jv 2026-09-18 14:51:12 -05:00
parent e0a23e1597
commit e8d39e558a
1 changed files with 5 additions and 1 deletions

View File

@ -202,7 +202,8 @@ jobs:
exit "${version_status}" exit "${version_status}"
fi fi
else else
action_command="rebuild-cluster" echo "No kubeconfig found; skipping actual execution (CI mode)."
action_command="none"
fi fi
fi fi
@ -211,6 +212,9 @@ jobs:
echo "Running jeannie ${action_command}" echo "Running jeannie ${action_command}"
"${deploy_dir}/jeannie" "${action_command}" "${deploy_dir}/jeannie" "${action_command}"
;; ;;
none)
echo "Deployment skipped: Code pushed to bootstrap, but no credentials found for cluster execution."
;;
*) *)
echo "Unsupported HOMELAB_ACTION_COMMAND: ${action_command}" >&2 echo "Unsupported HOMELAB_ACTION_COMMAND: ${action_command}" >&2
exit 1 exit 1