Skip to content

Commit

Permalink
Tweak github action to deal with no space error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amardomingo committed Sep 15, 2021
1 parent fd155b6 commit 576b641
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/dd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,9 @@ jobs:
matrix:
platform: ["linux/arm64","linux/amd64"]
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
- name: FreeSpace
run: |
echo "Free space:"
df -h
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Build recent
env:
KUBE_BUILD_PLATFORMS: ${{ matrix.platform }}
Expand Down Expand Up @@ -93,9 +77,9 @@ jobs:
strategy:
matrix:
assets: [
"kubernetes-client",
"kubernetes-node",
"kubernetes-server"
"kubernetes-client",
"kubernetes-node",
"kubernetes-server"
]
platform: ["linux-arm64","linux-amd64"]
steps:
Expand Down

0 comments on commit 576b641

Please sign in to comment.