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 4c3f611 commit fa890c0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
with:
version: v3.12.1

- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true
# - uses: actions/setup-python@v4
# with:
# python-version: '3.9'
# check-latest: true

# - name: Set up chart-testing
# uses: helm/[email protected]
Expand All @@ -36,7 +36,7 @@ jobs:
run: |
POD_NAME=$(kubectl get pod -l app=jupyterhub -l component=hub -o jsonpath='{.items[*].metadata.name}')
while true; do
POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.items[*].status.phase}')
POD_STATUS=$(kubectl get pod $POD_NAME -o jsonpath='{.status.phase}')
if [[ "$POD_STATUS" == "Failed" ]]; then
echo "Pod $POD_NAME is in a Failed state."
exit 1
Expand All @@ -45,6 +45,8 @@ jobs:
break
else
echo "Pod $POD_NAME is in $POD_STATUS state. Waiting..."
kubectl describe pod $POD_NAME
echo "--------"
kubectl logs $POD_NAME | tail
echo "--------"
sleep 10 # Adjust the sleep interval as needed
Expand Down

0 comments on commit fa890c0

Please sign in to comment.