From 3d05678c964b9267b838ae017c0e07f049cbfe1d Mon Sep 17 00:00:00 2001 From: robin <binkrassdufass@gmail.com> Date: Wed, 6 Dec 2023 09:04:11 +0000 Subject: [PATCH] lighthouse --- .gitea/workflows/deploy.yaml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 055f949..aa52415 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -34,7 +34,7 @@ jobs: SECURITY_ALLOWRELATIVEPATHS: "true" live-server: - image: gitbase.de/robin/live-server + image: gitbase.de/robin/live-server:latest ports: - 8081:8081 @@ -80,18 +80,6 @@ jobs: # cp frontend/spa.html api/templates/spa.html echo ______ frontend/spa.html ______ cat frontend/spa.html - - name: stop Live Server - run: | - docker stop live-server-container - docker rm live-server-container - # - name: Start Live Server - #-v ${{ github.workspace }}:/usr/src/app - # run: | - # ls -la - # echo ${{ github.workspace }} - # pwd - # docker pull gitbase.de/robin/live-server:latest - # docker run -d --name live-server-container -p 8081:8081 gitbase.de/robin/live-server:latest - name: Wait for Live Server run: | @@ -100,11 +88,6 @@ jobs: while ! curl --output /dev/null --silent --head --fail http://live-server:8081; do if [ $attempts -eq $max_attempts ]; then echo "Live server not ready after $max_attempts attempts" - echo "Printing container logs:" - docker logs live-server-container - - echo "Printing contents of the working directory in the container:" - docker exec live-server-container ls -la /usr/src/app exit 1 fi attempts=$((attempts+1))