From 1bccb2ef22db81ef3d3929d2fc26d8f7b5457f56 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Sun, 2 Jun 2024 18:09:33 +0200 Subject: [PATCH] Use hostname for Docker test (#10) --- .github/workflows/docker.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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