From ef7b7037d4415112c4a0b11900aefe69667497c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= Date: Fri, 16 Aug 2024 22:25:02 +0200 Subject: [PATCH] chore: Only cleanup docker iamges --- .github/workflows/cicd-dotnet.yml | 4 ++-- .github/workflows/step-dotnet-tests.yml | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cicd-dotnet.yml b/.github/workflows/cicd-dotnet.yml index 516b2c6..1f23c14 100644 --- a/.github/workflows/cicd-dotnet.yml +++ b/.github/workflows/cicd-dotnet.yml @@ -33,7 +33,7 @@ on: required: false type: boolean default: false - enableCleanUp: + enableCleanUpDockerDocker: required: false type: boolean default: false @@ -109,7 +109,7 @@ jobs: uses: ./.github/workflows/step-dotnet-tests.yml with: enableSonarQube: ${{ inputs.enableSonarQube || false }} - enableCleanUp: ${{ inputs.enableCleanUp || false }} + enableCleanUpDockerDocker: ${{ inputs.enableCleanUpDockerDocker || false }} disableCoverageUpload: ${{ inputs.disableCoverageUpload || false }} dotnet-logging: ${{ inputs.dotnet-logging || 'quiet' }} dotnet-version: ${{ inputs.dotnet-version || '8.x' }} diff --git a/.github/workflows/step-dotnet-tests.yml b/.github/workflows/step-dotnet-tests.yml index 04a1931..77bcdcd 100644 --- a/.github/workflows/step-dotnet-tests.yml +++ b/.github/workflows/step-dotnet-tests.yml @@ -5,7 +5,7 @@ on: required: false type: boolean default: false - enableCleanUp: + enableCleanUpDockerDocker: required: false type: boolean default: false @@ -68,17 +68,11 @@ jobs: # multiple runners. However, we need to keep in mind that running too many # simultaneous builds has an impact on others as well. We observed that scheduled # Dependabot builds blocked others in the Testcontainers organization. - - name: Free Disk Space + - name: Free Disk Space - Docker Images uses: jlumbroso/free-disk-space@v1.3.1 - if: ${{ inputs.enableCleanUp == true && runner.os == 'Linux' }} + if: ${{ inputs.enableCleanUpDockerDocker == true && runner.os == 'Linux' }} with: - tool-cache: true - android: true - dotnet: true - haskell: true - large-packages: true docker-images: true - swap-storage: false - name: Setup .NET uses: actions/setup-dotnet@v4