Skip to content

Commit

Permalink
chore: Only cleanup docker iamges (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion authored Aug 16, 2024
1 parent 3b54d1f commit 0060e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
required: false
type: boolean
default: false
enableCleanUp:
enableCleanUpDockerDocker:
required: false
type: boolean
default: false
Expand Down Expand Up @@ -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' }}
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/step-dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
required: false
type: boolean
default: false
enableCleanUp:
enableCleanUpDockerDocker:
required: false
type: boolean
default: false
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0060e67

Please sign in to comment.