mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
ci: skip lux-k8s deploy when LUX_K8S_CLUSTER_NAME secret is missing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user