From 9b962e5f6bfe6ae665f1d5dc30dbc0f98c3fb01c Mon Sep 17 00:00:00 2001 From: soulgalore Date: Sun, 2 Jun 2024 18:04:51 +0200 Subject: [PATCH] Use hostname for Docker test --- .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