ci: update Docker Compose log dumping to use local containers.txt
This commit is contained in:
parent
16d9a0e205
commit
a2f1ea71d2
5
.github/workflows/wc-e2e-test.yaml
vendored
5
.github/workflows/wc-e2e-test.yaml
vendored
@ -50,6 +50,7 @@ jobs:
|
|||||||
run: wait-on --timeout 30000 http://localhost:5080
|
run: wait-on --timeout 30000 http://localhost:5080
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
docker ps -a
|
||||||
cd frontend/webcomponent
|
cd frontend/webcomponent
|
||||||
# Install Playwright browsers
|
# Install Playwright browsers
|
||||||
mkdir -p /tmp/ms-playwright
|
mkdir -p /tmp/ms-playwright
|
||||||
@ -80,11 +81,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd openvidu-local-deployment/community
|
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
|
mkdir -p /tmp/docker-logs
|
||||||
while read container; do
|
while read container; do
|
||||||
docker compose logs "$container" > "/tmp/docker-logs/${container}.log" || true
|
docker compose logs "$container" > "/tmp/docker-logs/${container}.log" || true
|
||||||
done < /tmp/containers.txt
|
done < containers.txt
|
||||||
- name: Upload Docker Compose logs
|
- name: Upload Docker Compose logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user