Skip to content

Commit

Permalink
3rd attempt at fixing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
elsong86 committed Aug 21, 2024
1 parent f200298 commit 9ed9080
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ jobs:

- name: Wait for Redis to be ready
run: |
for i in {1..10}; do
nc -z redis 6379 && break
echo "Waiting for Redis..."
sleep 2
for i in {1..30}; do
if nc -zv redis 6379; then
echo "Redis is ready!"
break
fi
echo "Waiting for Redis to be ready..."
sleep 3
done
- name: Build and test backend Docker image
Expand Down

0 comments on commit 9ed9080

Please sign in to comment.