fix: prevent accidental rebuild-cluster in CI by defaulting to 'none' when kubeconfig is missing
This commit is contained in:
parent
e0a23e1597
commit
e8d39e558a
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue