[core] Check docker health in CI

fix #1085
This commit is contained in:
devlikepro committed 2025-06-29 11:17:51 +07:00
1 parent 2489c2da46
commit 9db4c8c333
3 files changed
+19 -1

No files matched your search

+10 -1
View File
@@ -126,7 +126,16 @@ jobs:
working-directory: tests/smoke
timeout-minutes: 2
run: |
docker run -d --name smoke --rm -p3000:3000 ${{ vars.DOCKER_IMAGE }}:${{ matrix.tag }}
docker run -d \
--name smoke \
--health-interval 1s \
--health-retries 60 \
--health-timeout 2s \
--health-start-period 2s \
--health-start-interval 1s \
--rm -p3000:3000 \
${{ vars.DOCKER_IMAGE }}:${{ matrix.tag }}
sleep 3
docker logs smoke
goss validate --retry-timeout 30s --sleep 1s