Skip to content

Commit 02c5ff7

Browse files
authored
fix: free disk space in release workflow to prevent Docker build failures (#4572)
<!-- Thanks for sending a pull request! Here are some tips for you: --> #### What type of PR is this? Fix #### What this PR does / why we need it Adds disk space cleanup step to the release workflow to fix "no space left on device" errors during Docker image builds. Fix issue with `mage sql` not downloading dependencies. #### Which issue(s) this PR fixes <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. _If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_* --> Fixes # #### Special notes for your reviewer Signed-off-by: Dejan Zele Pejchev <[email protected]>
1 parent 261f3fe commit 02c5ff7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ jobs:
7070
# Checkout the tag that triggered the workflow.
7171
ref: ${{ github.event.workflow_run.head_branch }}
7272

73+
# Free disk space to prevent "no space left on device" during Docker builds.
74+
# This runs on every build since GitHub runners are ephemeral.
75+
- name: Free Disk Space (Ubuntu)
76+
uses: jlumbroso/[email protected]
77+
with:
78+
tool-cache: false
79+
7380
- name: Fetch Git tags
7481
run: git fetch --force --tags
7582

magefiles/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func KindTeardown() {
151151

152152
// Generate scheduler SQL.
153153
func Sql() error {
154+
mg.Deps(BootstrapTools)
154155
mg.Deps(sqlcCheck)
155156

156157
if err := sqlcRun("generate", "-f", "internal/scheduler/database/sql.yaml"); err != nil {

0 commit comments

Comments
 (0)