Skip to content

Conversation

@DeimerM
Copy link
Contributor

@DeimerM DeimerM commented Jan 13, 2026

Description

This PR adds a specialized cleanup step to the image build pipeline. It is designed to remove default resources and pre-installed software provided by the GitHub Actions (GA) runners that are not necessary for our specific build process.
Why is this necessary?

We have encountered no space left on device errors (specifically during the #111 importing to docker stage) because the standard GitHub-hosted runners have a limited disk capacity (approx. 14GB–18GB). Large Docker builds—especially those involving heavy node_modules or multiple layers—can exceed this limit.

By clearing out unused tools like the Android SDK, .NET, and the hosted tool cache, we can reclaim up to 20GB+ of additional disk space for the build process.

@DeimerM DeimerM requested a review from a team as a code owner January 13, 2026 20:36
ssh-key: ${{ inputs.STRAIN_REPOSITORY != github.repository && secrets.SSH_PRIVATE_KEY || '' }}
path: strains

- name: Clean Up Disk Space
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @DeimerM. I’m aligned with this change, and I don’t think the added build time (under 2 minutes) is a major concern

It would be nice to expose this as a configurable flag, maybe we can leave the default to true (enable disk space cleanup), while allowing it to be disabled for environments where it’s not required (e.g., larger runners) to reduce build time
Please let's make sure this option is documented in the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants