From e020bb1c18e620a5c5b3f73ef1a24ea8ac0be51d Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 22 Oct 2024 17:38:05 +0200 Subject: [PATCH] healh check --- .forgejo/workflows/unlighthouse.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/unlighthouse.yml b/.forgejo/workflows/unlighthouse.yml index 563fd13..bcd4a50 100644 --- a/.forgejo/workflows/unlighthouse.yml +++ b/.forgejo/workflows/unlighthouse.yml @@ -11,12 +11,17 @@ jobs: website: image: forgejo.neshweb.net/firq/firq-dev-website:preview ports: - - 18081:8081 + - 8081:8081 + options: >- + --health-cmd "curl -sS http://website:8081/ || echo exit 1" + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - name: Checkout repository uses: https://code.forgejo.org/actions/checkout@v3 - name: Run unlighthouse - run: unlighthouse-ci --site "http://localhost:18081/" --disable-dynamic-sampling + run: unlighthouse-ci --site "http://localhost:8081/" --disable-dynamic-sampling - name: Prepare artifacts run: cp serve.json unlighthouse-reports - name: Upload reports