diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6d4865a..3c7a34f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -84,9 +84,17 @@ jobs: - name: Start Live Server run: | docker run -d -p 8081:8081 -v ${{ github.workspace }}:/usr/src/app gitbase.de/robin/live-server - - name: Test HTTP Request + + - name: Wait for Live Server run: | - curl http://127.0.0.1:8081 + for i in {1..10}; do # tries 10 times at 5-second intervals + curl http://127.0.0.1:8081 && break + echo "Waiting for live-server to be ready..." + sleep 5 + done + + - name: Test HTTP Request + run: curl http://127.0.0.1:8081 #- name: staging api testtest # if: github.ref == 'refs/heads/dev'