Fix: Replace wait command with sleep for tunnel initialization
Some checks failed
deploy-tunnel / deploy (push) Failing after 8s
Some checks failed
deploy-tunnel / deploy (push) Failing after 8s
- docker compose wait no funciona sin healthcheck configurado - Reemplazado con sleep 5 + verificación de que el container corre - Agrega paso de verificación para confirmar que el tunnel está up
This commit is contained in:
@@ -51,8 +51,16 @@ jobs:
|
|||||||
- name: Start tunnel
|
- name: Start tunnel
|
||||||
run: docker compose --project-name cloudflared-tunnel start
|
run: docker compose --project-name cloudflared-tunnel start
|
||||||
|
|
||||||
- name: Wait for tunnel to be healthy
|
- name: Wait for tunnel to initialize
|
||||||
run: docker compose --project-name cloudflared-tunnel wait cloudflared
|
run: sleep 5
|
||||||
|
|
||||||
- name: Show tunnel status
|
- name: Show tunnel status
|
||||||
run: docker compose --project-name cloudflared-tunnel logs --tail=50
|
run: docker compose --project-name cloudflared-tunnel logs --tail=50
|
||||||
|
|
||||||
|
- name: Verify tunnel is running
|
||||||
|
run: |
|
||||||
|
if ! docker ps | grep -q cloudflared-tunnel; then
|
||||||
|
echo "❌ Tunnel container no está corriendo"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "✅ Tunnel container corriendo"
|
||||||
|
|||||||
Reference in New Issue
Block a user