Skip to content

Commit

Permalink
wait for ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Apr 17, 2024
1 parent 8bfb8f6 commit dc81916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ jobs:
- name: Wait for ingress to be available
uses: iFaxity/wait-on-action@v1
with:
resource: http://localhost:80
resource: http://localhost:$IngressHTTPPort
timeout: 300000
- name: Check that ingress is available
run: |
set +e
CURL_EXIT_CODE=$(curl -o /dev/null -s -w "%{exitcode}\n" http://localhost)
CURL_EXIT_CODE=$(curl -o /dev/null -s -w "%{exitcode}\n" http://localhost:$IngressHTTPPort)
if [ ! "${CURL_EXIT_CODE}" == '0' ]; then
echo "Exit code should have been 0 but it was ${CURL_EXIT_CODE}."
curl -o /dev/null -s -w "%{http_code}\n" http://localhost
curl -o /dev/null -s -w "%{exitcode}\n" http://localhost
curl -o /dev/null -s -w "%{http_code}\n" http://localhost:$IngressHTTPPort
curl -o /dev/null -s -w "%{exitcode}\n" http://localhost:$IngressHTTPPort
exit 1
fi
Expand Down

0 comments on commit dc81916

Please sign in to comment.