Skip to content

Commit 9af2cee

Browse files
committed
Tweak github action to deal with no space error
The github build action is erorring out with a `no space left on device error` when trying to download the docker image `k8s.gcr.io/kube-cross:v1.12.12-1` to run the build. That image is 1.87GB big, and the `easimon/maximize-build-space` action was leaving only 512MB free on the root filesystem. We are completely removing that action to see if the default 14GB of disk space allocated by github actions are enough for the build Additionally, we are removing the `actions/setup-go` as well, since it should not be needed in this pipeline.
1 parent 4ea25af commit 9af2cee

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.github/workflows/dd-build.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,9 @@ jobs:
1515
matrix:
1616
platform: ["linux/arm64","linux/amd64"]
1717
steps:
18-
- name: Maximize build space
19-
uses: easimon/maximize-build-space@master
20-
with:
21-
root-reserve-mb: 512
22-
swap-size-mb: 1024
23-
remove-dotnet: 'true'
24-
remove-android: 'true'
25-
remove-haskell: 'true'
26-
- name: FreeSpace
27-
run: |
28-
echo "Free space:"
29-
df -h
3018
- uses: actions/checkout@v2
3119
with:
3220
fetch-depth: 0
33-
- name: Set up Go
34-
uses: actions/setup-go@v2
35-
with:
36-
go-version: 1.15
3721
- name: Build recent
3822
env:
3923
KUBE_BUILD_PLATFORMS: ${{ matrix.platform }}
@@ -93,9 +77,9 @@ jobs:
9377
strategy:
9478
matrix:
9579
assets: [
96-
"kubernetes-client",
97-
"kubernetes-node",
98-
"kubernetes-server"
80+
"kubernetes-client",
81+
"kubernetes-node",
82+
"kubernetes-server"
9983
]
10084
platform: ["linux-arm64","linux-amd64"]
10185
steps:

0 commit comments

Comments
 (0)