Skip to content

Commit

Permalink
update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kondratyev committed Aug 9, 2023
1 parent 3e93027 commit 2b14200
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@ jobs:
helm repo update
helm upgrade --cleanup-on-fail --install cmshub jupyterhub/jupyterhub --values values.yaml
- name: Wait for JupyterHub container to start or fail
- name: Install Prometheus & Grafana
run: |
cd ../monitoring/prometheus
helm upgrade --install prometheus . --values values.yaml
cd ../grafana
helm upgrade --install grafana . --values values.yaml
kubectl get pods
- name: Check the status of JupyterHub
run: |
while true; do
POD_STATUS=$(kubectl get pod -l app=jupyterhub -l component=hub -o jsonpath='{.status.phase}')
POD_STATUS=$(kubectl get pod -l app=jupyterhub -l component=hub -o jsonpath='{.items[*].status.phase}')
if [[ "$POD_STATUS" == "Failed" ]]; then
echo "Pod $POD_NAME is in a Failed state."
exit 1
Expand All @@ -48,11 +56,3 @@ jobs:
fi
done
timeout-minutes: 2

- name: Install Prometheus & Grafana
run: |
cd ../monitoring/prometheus
helm upgrade --install prometheus . --values values.yaml
cd ../grafana
helm upgrade --install grafana . --values values.yaml
kubectl get pods

0 comments on commit 2b14200

Please sign in to comment.