Skip to content

Commit 9d801ab

Browse files
authored
Add disk space checks and cleanup steps
Signed-off-by: Nahshon Unna Tsameret <60659093+nunnatsa@users.noreply.github.com>
1 parent 4bdb3db commit 9d801ab

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish-community-operators.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ jobs:
1616
OPM_VERSION: v1.47.0
1717
PACKAGE_DIR: "./deploy/olm-catalog/community-kubevirt-hyperconverged"
1818
steps:
19+
- name: Check disk space before
20+
run: df -h
21+
- name: Free up space
22+
run: |
23+
sudo rm -rf /usr/share/dotnet
24+
sudo rm -rf /opt/ghc
25+
sudo rm -rf /usr/local/share/boost
26+
docker system prune -af
27+
- name: Check disk space after
28+
run: df -h
29+
1930
- name: Set up QEMU
2031
uses: docker/setup-qemu-action@v3
2132
- name: resolve the correct branch of the tag
@@ -101,6 +112,17 @@ jobs:
101112
TARGET_BRANCH: ${{ needs.publish_hco.outputs.TARGET_BRANCH }}
102113
CSV_VERSION: ${{ needs.publish_hco.outputs.CSV_VERSION }}
103114
steps:
115+
- name: Check disk space before
116+
run: df -h
117+
- name: Free up space
118+
run: |
119+
sudo rm -rf /usr/share/dotnet
120+
sudo rm -rf /opt/ghc
121+
sudo rm -rf /usr/local/share/boost
122+
docker system prune -af
123+
- name: Check disk space after
124+
run: df -h
125+
104126
- name: Set up QEMU
105127
uses: docker/setup-qemu-action@v3
106128
- name: Checkout the latest code of ${{ env.TARGET_BRANCH }} branch

0 commit comments

Comments
 (0)