diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5eb1736cd..1f67161c1 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -70,6 +70,22 @@ jobs: env: BACKEND_URL: http://localhost:9021 + - name: Collect container logs + if: ${{ always() && !cancelled() }} + run: | + mkdir -p /tmp/container-logs + services="$(docker compose -f ../docker-compose.yml config --services || true)" + for service in $services; do + docker compose -f ../docker-compose.yml logs --no-color "$service" > "/tmp/container-logs/${service}.log" || true + done + + - uses: actions/upload-artifact@v7 + if: ${{ always() && !cancelled() }} + with: + name: container-logs + path: /tmp/container-logs/ + retention-days: 7 + - uses: actions/upload-artifact@v7 if: ${{ !cancelled() }} with: