From 79554bd9a25987797d1d288dd8febda49a364ade Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Thu, 4 Jun 2026 17:39:19 -0700 Subject: [PATCH] ci: upload container logs on failure --- .github/workflows/boulder-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/boulder-ci.yml b/.github/workflows/boulder-ci.yml index 2d75d7f6944..559be38538b 100644 --- a/.github/workflows/boulder-ci.yml +++ b/.github/workflows/boulder-ci.yml @@ -95,8 +95,20 @@ jobs: # Run the test matrix. This will run - name: "Run Test: ${{ matrix.tests }}" + id: test run: ${{ matrix.tests }} + - name: "Emit combined docker logs" + if: failure() && steps.test.outcome == 'failure' + run: docker compose logs > containers.log + + - name: "Upload combined docker logs on error" + if: failure() && steps.test.outcome == 'failure' + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: container-logs + path: ${{ github.workspace }}/containers.log + govulncheck: runs-on: ubuntu-24.04 strategy: