diff --git a/.github/workflows/docker-compose.yml b/.github/workflows/docker-compose.yml index 07db64b..821c1cd 100644 --- a/.github/workflows/docker-compose.yml +++ b/.github/workflows/docker-compose.yml @@ -45,16 +45,15 @@ jobs: - name: ns internal log run: | - docker compose --file docker-compose.yml exec openmldb-ns1 cp /opt/openmldb/logs log-ns1/ - docker compose --file docker-compose.yml logs openmldb-ns2 cp /opt/openmldb/logs log-ns2/ + docker compose --file docker-compose.yml exec openmldb-ns1 cp -r /opt/openmldb/logs log-ns1-src/ + docker compose --file docker-compose.yml logs openmldb-ns2 cp -r /opt/openmldb/logs log-ns2-src/ - uses: actions/upload-artifact@v3 with: name: ns-logs path: | - log-ns1/ - log-ns2/ - + log-ns1-src/ + log-ns2-src/ - name: verbose exporter log run: | @@ -89,6 +88,18 @@ jobs: run: | docker compose --file docker-compose.yml --env-file prod.env up -d grafana + - name: ns internal log + run: | + docker compose --file docker-compose.yml exec openmldb-ns1 cp -r /opt/openmldb/logs log-ns1-prod/ + docker compose --file docker-compose.yml logs openmldb-ns2 cp -r /opt/openmldb/logs log-ns2-prod/ + + - uses: actions/upload-artifact@v3 + with: + name: ns-logs + path: | + log-ns1-prod/ + log-ns2-prod/ + - name: run tests run: | docker compose --file docker-compose.yml --env-file prod.env up --no-recreate --exit-code-from testing testing