mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 07:41:27 +00:00
ci: retry frontend smoke check
nginx needs a few seconds for its entrypoint scripts; the single-shot curl raced the container start. Same retry loop as the backend check, with a log dump on failure. Authored By: TDvorak <[email protected]> Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
0f984fb579
commit
d0bdf0a441
1 file changed
+7
-1
@@ -100,7 +100,13 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Check frontend responds
|
- name: Check frontend responds
|
||||||
run: curl -sf http://localhost:3000/ -o /dev/null
|
run: |
|
||||||
|
for i in $(seq 1 30); do
|
||||||
|
if curl -sf http://localhost:3000/ -o /dev/null; then exit 0; fi
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
|
docker compose -f infra/docker-compose.yml logs --tail 50 frontend
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Teardown
|
- name: Teardown
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in new issue
Block a user