mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-09-05 06:32:21 +02:00
ci: skip disk cleanup on larger runners
The disk cleanup steps exist because the default ubuntu-latest runner has limited free space. Runners selected via CI_RUNNERS other than the default come with much larger disks, making the cleanup unnecessary overhead. Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
258d4b17d1
commit
12d66a070b
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -14,6 +14,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Cleanup Disk
|
- name: Cleanup Disk
|
||||||
|
if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest'
|
||||||
uses: jlumbroso/free-disk-space@v1.3.1
|
uses: jlumbroso/free-disk-space@v1.3.1
|
||||||
with:
|
with:
|
||||||
android: true
|
android: true
|
||||||
@ -23,6 +24,7 @@ jobs:
|
|||||||
large-packages: false
|
large-packages: false
|
||||||
swap-storage: false
|
swap-storage: false
|
||||||
- name: Cleanup docker cache
|
- name: Cleanup docker cache
|
||||||
|
if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
echo "-------------Disk info before cleanup----------------"
|
echo "-------------Disk info before cleanup----------------"
|
||||||
df -h
|
df -h
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user