From c782eb19b3cba7bd38ea8171795fc75f330b9d87 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Thu, 11 May 2023 14:06:16 -0500 Subject: [PATCH] Make release process cleanup more aggressive (#1701) ## Description Reduce release space even further. ## Related Issue Fixes #N/A ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [X] Other (security config, docs update, etc) ## Checklist before merging - [N/A] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 745b463034..291d68f5fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,15 +64,18 @@ jobs: - name: Run Tests run: | sudo env "PATH=$PATH" CI=true APPLIANCE_MODE=true make test-e2e ARCH=amd64 - sudo rm -rf zarf-sbom - sudo rm -rf build/zarf-package-* - sudo build/zarf tools clear-cache sudo chown $USER /tmp/zarf-*.log - name: Save logs if: always() uses: ./.github/actions/save-logs + - name: Cleanup files + run: | + sudo rm -rf zarf-sbom /tmp/zarf-* + sudo env "PATH=$PATH" CI=true make delete-packages + sudo build/zarf tools clear-cache + # Builds init packages since GoReleaser won't handle this for us - name: Create release time CVE report run: "make cve-report"