diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f26a7d5..7106e43 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -35,12 +35,14 @@ jobs: - name: Show versions run: | docker --version + - name: Get host IP + run: echo "HOST_IP=$(hostname -I | awk '{print $1}')" >> $GITHUB_ENV - name: Run a test run: | git clone https://github.com/sitespeedio/sitespeed.io.git cd sitespeed.io npm install - bin/sitespeed.js https://www.wikipedia.org -n 1 --api.hostname 127.0.0.1 --api.location docker --headless --api.json + bin/sitespeed.js https://www.wikipedia.org -n 1 --api.hostname 127.0.0.1 --api.location docker --headless --api.json --s3.endpoint "http://${{ env.HOST_IP }}:9000" - name: Display Server log if: failure() || success() run: cat server.log