ci: skip lux-k8s deploy when LUX_K8S_CLUSTER_NAME secret is missing

This commit is contained in:
2026-03-12 16:12:23 -07:00
parent 89933bfc5a
commit 944b2ec47a
+3 -1
View File
@@ -109,11 +109,13 @@ jobs:
kubectl delete $old -n bootnode --ignore-not-found
done
# --- lux-k8s cluster ---
# --- lux-k8s cluster (optional — needs LUX_K8S_CLUSTER_NAME secret) ---
- name: Save kubeconfig (lux-k8s)
if: ${{ secrets.LUX_K8S_CLUSTER_NAME != '' }}
run: doctl kubernetes cluster kubeconfig save ${{ secrets.LUX_K8S_CLUSTER_NAME }}
- name: Deploy operator to lux-k8s
if: ${{ secrets.LUX_K8S_CLUSTER_NAME != '' }}
run: |
kubectl apply -f infra/k8s/lux/crds.yaml
kubectl apply -f infra/k8s/lux/rbac.yaml