This commit is contained in:
parent
507b93180a
commit
800b60e88d
@ -83,7 +83,7 @@ jobs:
|
||||
|
||||
- name: Start Live Server
|
||||
run: |
|
||||
docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
|
||||
docker run -d --name live-server-container -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server
|
||||
|
||||
- name: Wait for Live Server
|
||||
run: |
|
||||
@ -92,6 +92,7 @@ jobs:
|
||||
while ! curl --output /dev/null --silent --head --fail http://127.0.0.1:8081; do
|
||||
if [ $attempts -eq $max_attempts ]; then
|
||||
echo "Live server not ready after $max_attempts attempts"
|
||||
docker logs live-server-container
|
||||
exit 1
|
||||
fi
|
||||
attempts=$((attempts+1))
|
||||
|
Loading…
Reference in New Issue
Block a user