Skip to content

Commit

Permalink
[fix][ci] Fix docker image building by releasing more disk space befo…
Browse files Browse the repository at this point in the history
…re building (apache#21365)
  • Loading branch information
lhotari authored and mukesh-ctds committed Dec 6, 2023
1 parent 7473ef7 commit 7340ab2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/clean-disk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
directories=(/usr/local/lib/android /opt/ghc)
if [[ "${{ inputs.mode }}" == "full" ]]; then
# remove these directories only when mode is 'full'
directories+=(/usr/share/dotnet)
directories+=(/usr/share/dotnet /opt/hostedtoolcache/CodeQL)
fi
emptydir=/tmp/empty$$/
mkdir $emptydir
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,8 @@ jobs:

- name: Clean Disk
uses: ./.github/actions/clean-disk
with:
mode: full

- name: Cache local Maven repository
uses: actions/cache@v3
Expand Down Expand Up @@ -862,6 +864,7 @@ jobs:

- name: Pulsar IO
group: PULSAR_IO
clean_disk: true

- name: Sql
group: SQL
Expand All @@ -873,6 +876,10 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Clean Disk when needed
if: ${{ matrix.clean_disk }}
uses: ./.github/actions/clean-disk

- name: Setup ssh access to build runner VM
# ssh access is enabled for builds in own forks
if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'pull_request' }}
Expand Down Expand Up @@ -1073,6 +1080,7 @@ jobs:

- name: Pulsar IO - Oracle
group: PULSAR_IO_ORA
clean_disk: true

steps:
- name: checkout
Expand All @@ -1081,6 +1089,10 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Clean Disk when needed
if: ${{ matrix.clean_disk }}
uses: ./.github/actions/clean-disk

- name: Setup ssh access to build runner VM
# ssh access is enabled for builds in own forks
if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'pull_request' }}
Expand Down

0 comments on commit 7340ab2

Please sign in to comment.