Skip to content

Commit 3e9ffc9

Browse files
authored
chore: fixes for kube build (apache#1421)
* remove unnecessary files in container
1 parent 36074b4 commit 3e9ffc9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
contents: read
3737
packages: write
3838
steps:
39+
- name: Remove unnecessary files
40+
run: |
41+
echo "Disk space before cleanup:"
42+
df -h
43+
docker system prune -af
44+
sudo rm -rf /tmp/*
45+
sudo rm -rf /opt/hostedtoolcache
46+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
47+
sudo apt-get clean
48+
echo "Disk space after cleanup:"
49+
df -h
3950
- name: Set up Java
4051
uses: actions/setup-java@v3
4152
with:
@@ -63,3 +74,4 @@ jobs:
6374
push: true
6475
tags: ghcr.io/apache/datafusion-comet:spark-3.4-scala-2.12-${{ env.COMET_VERSION }}
6576
file: kube/Dockerfile
77+
no-cache: true

0 commit comments

Comments
 (0)