From 79cc6971b1a7c8fb93734c0ae4450441e43da8c4 Mon Sep 17 00:00:00 2001 From: Gunnar von der Beck Date: Wed, 22 Nov 2023 13:57:20 +0100 Subject: [PATCH] chore: modified build pipeline to fetch docker logs --- .github/workflows/build.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 518e791..a44c581 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,25 @@ jobs: distribution: temurin cache: maven - - name: Setup Testcontainers Cloud Client - uses: atomicjar/testcontainers-cloud-setup-action@v1 - with: - token: ${{ secrets.TC_CLOUD_TOKEN }} +# - name: Setup Testcontainers Cloud Client +# uses: atomicjar/testcontainers-cloud-setup-action@v1 +# with: +# token: ${{ secrets.TC_CLOUD_TOKEN }} - name: Run Maven run: mvn -B clean verify com.mycila:license-maven-plugin:check + + - name: Dump Zeebe logs + uses: jwalton/gh-docker-logs@v2 + with: + images: 'ghcr.io/camunda-community-hub/zeebe-with-redis-exporter' + dest: './logs' + - name: Tar logs + if: failure() + run: tar cvzf ./logs.tgz ./logs + - name: Upload logs to GitHub + if: failure() + uses: actions/upload-artifact@master + with: + name: logs.tgz + path: ./logs.tgz \ No newline at end of file