From f136085604d77e89574c99001b5b946d2c0bb469 Mon Sep 17 00:00:00 2001 From: mjshastha <61929310+mjshastha@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:37:58 +0530 Subject: [PATCH] Add cleanup and disk usage checks to GitHub Actions workflow. (#1401) - Implement cleanup steps for Docker and KIND resources to prevent disk space errors. --- .github/workflows/release.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aa9af3a1c..479701ff6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,6 +57,10 @@ jobs: env: KUBECONFIG: /home/runner/.kube/config STARBOARD_TEST_CLI_LOG_LEVEL: "0" + - name: Cleanup Docker and KIND resources + run: | + docker system prune -a --force + docker volume prune --force itest-starboard-operator: name: Run integration tests / Starboard Operator needs: @@ -95,6 +99,10 @@ jobs: KUBECONFIG: /home/runner/.kube/config OPERATOR_NAMESPACE: starboard-system OPERATOR_TARGET_NAMESPACES: default + - name: Cleanup Docker and KIND resources + run: | + docker system prune -a --force + docker volume prune --force integration-operator-conftest: name: Integration / Operator / Conftest needs: @@ -133,6 +141,10 @@ jobs: KUBECONFIG: /home/runner/.kube/config OPERATOR_NAMESPACE: starboard-system OPERATOR_TARGET_NAMESPACES: default + - name: Cleanup Docker and KIND resources + run: | + docker system prune -a --force + docker volume prune --force release: name: Release needs: @@ -172,3 +184,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - name: Update new version for plugin 'starboard' in krew-index # uses: rajatjindal/krew-release-bot@v0.0.43 + - name: Cleanup Docker and KIND resources + run: | + docker system prune -a --force + docker volume prune --force + - name: Check disk usage + run: df -h