From 2070e3481ec30eb5aa66d9e4377a3d07ade9f04c Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Wed, 21 Feb 2024 15:28:26 +0000 Subject: [PATCH] gha: Storing artifacts for logs of k8s tests garm This PR helps to store the artifacts for different logs for k8s tests on garm. Fixes #9103 Signed-off-by: Gabriela Cervantes --- .github/workflows/run-k8s-tests-on-garm.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/run-k8s-tests-on-garm.yaml b/.github/workflows/run-k8s-tests-on-garm.yaml index 7853cffd88..6f02940c5e 100644 --- a/.github/workflows/run-k8s-tests-on-garm.yaml +++ b/.github/workflows/run-k8s-tests-on-garm.yaml @@ -85,6 +85,17 @@ jobs: timeout-minutes: 30 run: bash tests/integration/kubernetes/gha-run.sh run-tests + - name: Make artifacts tarball ${{ matrix.vmm }} + run: bash tests/integration/kubernetes/gha-run.sh make-tarball-artifacts + + - name: Archive artifacts ${{ matrix.vmm }} + uses: actions/upload-artifact@v3 + with: + name: k8s-tests-garm-${{ matrix.vmm }} + path: artifacts-${{ matrix.vmm }}.tar.gz + retention-days: 1 + if-no-files-found: error + - name: Delete kata-deploy if: always() run: bash tests/integration/kubernetes/gha-run.sh cleanup-garm