Skip to content

Commit

Permalink
Do bash hackery instead
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Elrod <rick@elrod.me>
  • Loading branch information
relrod committed Dec 5, 2023
1 parent 5efa1ba commit 315b417
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/actions/run_awx_devel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ runs:
timeout-minutes: 10 # Give AWX time to come up... but not too much time.
shell: bash
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -k https://localhost:8043/api/v2/ping/)" != "200" ]]
do
echo "Waiting for AWX..."
sleep 5
SECONDS=0
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -k https://localhost:8043/api/v2/ping/)" != "200" ]]; do
if [[ $SECONDS -gt 600 ]]; then
echo "Timing out, AWX never came up"
exit 1
fi
echo "Waiting for AWX..."
sleep 5
done
echo "AWX is up, updating the password..."
docker exec -i tools_awx_1 sh <<-EOSH
Expand Down

0 comments on commit 315b417

Please sign in to comment.