lighthouse
Some checks failed
deploy to production / deploy (push) Failing after 52s

This commit is contained in:
Robin Grenzdörfer 2023-12-06 08:00:56 +00:00
parent 8765658254
commit 05d1305194

View File

@ -85,16 +85,17 @@ jobs:
docker stop live-server-container docker stop live-server-container
docker rm live-server-container docker rm live-server-container
- name: Start Live Server - name: Start Live Server
#-v ${{ github.workspace }}:/usr/src/app
run: | run: |
ls -la ls -la
echo ${{ github.workspace }} echo ${{ github.workspace }}
pwd pwd
docker run -d --name live-server-container -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server docker run -d --name live-server-container -p 8081:8081 gitbase.de/robin/live-server:latest
- name: Wait for Live Server - name: Wait for Live Server
run: | run: |
attempts=0 attempts=0
max_attempts=10 max_attempts=4
while ! curl --output /dev/null --silent --head --fail http://127.0.0.1:8081; do while ! curl --output /dev/null --silent --head --fail http://127.0.0.1:8081; do
if [ $attempts -eq $max_attempts ]; then if [ $attempts -eq $max_attempts ]; then
echo "Live server not ready after $max_attempts attempts" echo "Live server not ready after $max_attempts attempts"