Skip to content

Commit

Permalink
use curl instead of wait-on-action
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Jan 11, 2024
1 parent b70ebaf commit aa920ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/miniziti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,22 @@ jobs:
zrok ./charts/zrok
- name: Wait for the zrok API to become available
uses: iFaxity/wait-on-action@v1
with:
resource: http-get://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version
delay: 3000
interval: 3000
timeout: 30000
verbose: true
shell: bash
run: |
ATTEMPTS=10
until !(( ATTEMPTS )) || curl --silent --fail http://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version &>/dev/null; do
echo "Waiting for zrok API to become available..."
sleep 3
(( ATTEMPTS-- ))
done
curl --silent --show-errors --fail-with-body http://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version
- name: Print debug info
if: always()
shell: bash
run: |
set +e
set -x
curl --verbose --head --fail-with-body http://ctrl.zrok.192.168.49.2.sslip.io/
curl --verbose http://ctrl.zrok.192.168.49.2.sslip.io/api/v1/version
miniziti kubectl get pods -A
miniziti kubectl get services -A
miniziti kubectl get ingresses -A
Expand Down

0 comments on commit aa920ed

Please sign in to comment.