Skip to content

Commit

Permalink
CI: Free disk space earlier (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored Oct 14, 2023
1 parent b024017 commit 2d94d77
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-BETA-flavors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ jobs:
- name: Get current date
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${GITHUB_ENV}

# Free disk space
- name: Free Disk space
shell: bash
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Build Image
uses: docker/build-push-action@v5
with:
Expand All @@ -126,13 +133,6 @@ jobs:
oxsecurity/megalinter-${{ matrix.flavor }}:beta
ghcr.io/oxsecurity/megalinter-${{ matrix.flavor }}:beta
# Free disk space
- name: Free Disk space
shell: bash
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Build Worker Image
uses: docker/build-push-action@v5
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ jobs:
- name: Get current date
run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${GITHUB_ENV}

# Free disk space
- name: Free Disk space
shell: bash
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Build & Push Docker Image (Server)
uses: docker/build-push-action@v5
with:
Expand Down Expand Up @@ -131,13 +138,6 @@ jobs:
oxsecurity/megalinter:beta
ghcr.io/oxsecurity/megalinter:beta
# Free disk space
- name: Free Disk space
shell: bash
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Build & Push Docker Worker Image
uses: docker/build-push-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l

- CI
- Add the other maintainers globally to the CODEOWNERS file ([#3008](https://github.com/oxsecurity/megalinter/pull/3008))
- Free disk space earlier in the process to avoid failure during docker build

- Linter versions upgrades
- [cfn-lint](https://github.com/aws-cloudformation/cfn-lint) from 0.80.2 to **0.80.3** on 2023-09-24
Expand Down

0 comments on commit 2d94d77

Please sign in to comment.