This commit is contained in:
parent
1bf22abc8f
commit
96364fbf55
@ -33,10 +33,10 @@ jobs:
|
|||||||
SECURITY_ALLOWUPPERPATHS: "true"
|
SECURITY_ALLOWUPPERPATHS: "true"
|
||||||
SECURITY_ALLOWRELATIVEPATHS: "true"
|
SECURITY_ALLOWRELATIVEPATHS: "true"
|
||||||
|
|
||||||
#live-server:
|
live-server:
|
||||||
# image: gitbase.de/robin/live-server
|
image: gitbase.de/robin/live-server
|
||||||
# ports:
|
ports:
|
||||||
# - 80:80
|
- 8081:8081
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -84,20 +84,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
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
|
#-v ${{ github.workspace }}:/usr/src/app
|
||||||
run: |
|
# run: |
|
||||||
ls -la
|
# ls -la
|
||||||
echo ${{ github.workspace }}
|
# echo ${{ github.workspace }}
|
||||||
pwd
|
# pwd
|
||||||
docker pull gitbase.de/robin/live-server:latest
|
# docker pull gitbase.de/robin/live-server:latest
|
||||||
docker run -d --name live-server-container -p 8081:8081 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: |
|
||||||
attempts=0
|
attempts=0
|
||||||
max_attempts=4
|
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://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:"
|
echo "Printing container logs:"
|
||||||
|
Loading…
Reference in New Issue
Block a user