ci: update Docker Compose log dumping to use local containers.txt

This commit is contained in:
Carlos Santos 2025-05-14 16:18:14 +02:00
parent 16d9a0e205
commit a2f1ea71d2

View File

@ -50,6 +50,7 @@ jobs:
run: wait-on --timeout 30000 http://localhost:5080
- name: Run tests
run: |
docker ps -a
cd frontend/webcomponent
# Install Playwright browsers
mkdir -p /tmp/ms-playwright
@ -80,11 +81,11 @@ jobs:
shell: bash
run: |
cd openvidu-local-deployment/community
docker compose ps --format '{{.Name}}' > /tmp/containers.txt
docker compose ps --format '{{.Name}}' > containers.txt
mkdir -p /tmp/docker-logs
while read container; do
docker compose logs "$container" > "/tmp/docker-logs/${container}.log" || true
done < /tmp/containers.txt
done < containers.txt
- name: Upload Docker Compose logs
if: always()
uses: actions/upload-artifact@v4