Commit d2426ce 1 parent 3cc1398 commit d2426ce Copy full SHA for d2426ce
File tree 2 files changed +25
-12
lines changed
2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 43
43
echo "changed=true" >> "$GITHUB_OUTPUT"
44
44
fi
45
45
46
+ - name : Set up Kubectl
47
+ uses : azure/setup-kubectl@v1
48
+ with :
49
+ version : v1.27.3
50
+ id : install_kubectl
51
+
52
+ - name : Check if Kubernetes cluster is running
53
+ run : |
54
+ retries=10
55
+ while [ $retries -gt 0 ]; do
56
+ if kubectl get all; then
57
+ echo "Kubernetes cluster is running."
58
+ break
59
+ else
60
+ echo "Kubernetes cluster not ready, retrying in 30 seconds..."
61
+ retries=$((retries-1))
62
+ sleep 30
63
+ fi
64
+ done
65
+ if [ $retries -eq 0 ]; then
66
+ echo "Cluster did not become ready after multiple attempts."
67
+ exit 1
68
+ fi
69
+ if : steps.list-changed.outputs.changed == 'true' && steps.install_kubectl.outcome == 'success'
70
+
46
71
- name : Run chart-testing (lint)
47
72
if : steps.list-changed.outputs.changed == 'true'
48
73
run : |
Original file line number Diff line number Diff line change 30
30
with :
31
31
version : v3.15.4
32
32
33
- - name : Set up Kubectl
34
- uses : azure/setup-kubectl@v1
35
- with :
36
- version : v4.0.0
37
- id : install_kubectl
38
-
39
- - name : Check if Kubernetes cluster is running
40
- run : |
41
- kubectl get all
42
- continue-on-error : false
43
- if : ${{ steps.install_kubectl.outcome == 'success' }} # Check if kubectl setup succeeded
44
-
45
33
- name : Add Dependencies
46
34
run : |
47
35
helm repo add stable https://charts.helm.sh/stable
You can’t perform that action at this time.
0 commit comments