Skip to content

Commit c2b7108

Browse files
committed
Actively wait for hassio IPAddress to become valid
1 parent 7db1dbb commit c2b7108

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/builder.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ jobs:
296296
- &wait_for_supervisor
297297
name: Wait for Supervisor to come up
298298
run: |
299-
SUPERVISOR=$(docker inspect --format='{{.NetworkSettings.Networks.hassio.IPAddress}}' hassio_supervisor)
299+
until SUPERVISOR=$(docker inspect --format='{{.NetworkSettings.Networks.hassio.IPAddress}}' hassio_supervisor 2>/dev/null) && \
300+
[ -n "$SUPERVISOR" ] && [ "$SUPERVISOR" != "<no value>" ]; do
301+
echo "Waiting for network configuration..."
302+
sleep 1
303+
done
300304
echo "Waiting for Supervisor API at http://${SUPERVISOR}/supervisor/ping"
301305
timeout=300
302306
elapsed=0

0 commit comments

Comments
 (0)