Skip to content

Commit

Permalink
Use hostname for Docker test (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jun 2, 2024
1 parent 09f3249 commit 1bccb2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bccb2e

Please sign in to comment.