parent
96364fbf55
commit
3d05678c96
@ -34,7 +34,7 @@ jobs:
|
|||||||
SECURITY_ALLOWRELATIVEPATHS: "true"
|
SECURITY_ALLOWRELATIVEPATHS: "true"
|
||||||
|
|
||||||
live-server:
|
live-server:
|
||||||
image: gitbase.de/robin/live-server
|
image: gitbase.de/robin/live-server:latest
|
||||||
ports:
|
ports:
|
||||||
- 8081:8081
|
- 8081:8081
|
||||||
|
|
||||||
@ -80,18 +80,6 @@ jobs:
|
|||||||
# cp frontend/spa.html api/templates/spa.html
|
# cp frontend/spa.html api/templates/spa.html
|
||||||
echo ______ frontend/spa.html ______
|
echo ______ frontend/spa.html ______
|
||||||
cat 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
|
- name: Wait for Live Server
|
||||||
run: |
|
run: |
|
||||||
@ -100,11 +88,6 @@ jobs:
|
|||||||
while ! curl --output /dev/null --silent --head --fail http://live-server:8081; do
|
while ! curl --output /dev/null --silent --head --fail http://live-server: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"
|
||||||
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
attempts=$((attempts+1))
|
attempts=$((attempts+1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user