From 5b4fff1724c6a00da5bcbb7985e8da685be88005 Mon Sep 17 00:00:00 2001 From: miampf Date: Tue, 3 Dec 2024 11:41:44 +0100 Subject: [PATCH] undeploy after download --- .github/workflows/e2e.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index cc9473115..e05e1108c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -79,11 +79,15 @@ jobs: --image-replacements workspace/just.containerlookup \ --namespace-file workspace/e2e.namespace \ --platform ${{ inputs.platform }} \ - --skip-undeploy="${{ inputs.skip-undeploy && 'true' || 'false' }}" + --skip-undeploy="true" - name: Download logs if: always() run: | nix run .#scripts.get-logs download workspace/e2e.namespace + - name: Undeploy + if: !inputs.skip-undeploy + run: | + kubectl delete ns "$(cat workspace/e2e.namespace)" --timeout 5m - name: Upload logs if: always() uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3