Skip to content

Commit aa920ed

Browse files
committed
use curl instead of wait-on-action
1 parent b70ebaf commit aa920ed

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/miniziti.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,22 @@ jobs:
115115
zrok ./charts/zrok
116116
117117
- name: Wait for the zrok API to become available
118-
uses: iFaxity/wait-on-action@v1
119-
with:
120-
resource: http-get://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version
121-
delay: 3000
122-
interval: 3000
123-
timeout: 30000
124-
verbose: true
118+
shell: bash
119+
run: |
120+
ATTEMPTS=10
121+
until !(( ATTEMPTS )) || curl --silent --fail http://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version &>/dev/null; do
122+
echo "Waiting for zrok API to become available..."
123+
sleep 3
124+
(( ATTEMPTS-- ))
125+
done
126+
curl --silent --show-errors --fail-with-body http://ctrl.zrok.${{ steps.minikube_ip.outputs.minikube_ip }}.sslip.io/api/v1/version
125127
126128
- name: Print debug info
127129
if: always()
128130
shell: bash
129131
run: |
130132
set +e
131133
set -x
132-
curl --verbose --head --fail-with-body http://ctrl.zrok.192.168.49.2.sslip.io/
133-
curl --verbose http://ctrl.zrok.192.168.49.2.sslip.io/api/v1/version
134134
miniziti kubectl get pods -A
135135
miniziti kubectl get services -A
136136
miniziti kubectl get ingresses -A

0 commit comments

Comments
 (0)