Giter Site home page Giter Site logo

Comments (4)

fiftydinar avatar fiftydinar commented on July 17, 2024 1

We already documented the use of "Maximize build space" action as an option in build.yml.

https://blue-build.org/reference/github-action/#maximize_build_space-optional

Try to input the option in build.yml as outlined above, as it's different from ublue-os "Maximize build space" action.

We use this one:

https://github.com/jlumbroso/free-disk-space

from template.

johnr14 avatar johnr14 commented on July 17, 2024 1

I was looking at the code and found the solution

      uses: jlumbroso/[email protected]
      if: ${{ inputs.maximize_build_space == 'true' }}

Just a bit before I saw your reply.

It did build with my image with the ublue-os action.
Did the rebuild with free-disk-space and it resulted in : Saved 4.7GiB

Sorry my fault for not seeing it in the documentation.

I'd would have preferred the template to include all sane options with their default and commented out. It would make it more self explanatory.

Just pasting in case someone else search issues instead or reading the docs :)

      - name: Build Custom Image
        uses: blue-build/[email protected]
        with:
          recipe: ${{ matrix.recipe }}
          cosign_private_key: ${{ secrets.SIGNING_SECRET }}
          registry_token: ${{ github.token }}
          pr_event_number: ${{ github.event.number }}
          #use_unstable_cli: false # this action pulls the main branch of blue-build/cli instead of the stable version
          maximize_build_space: true # run the unwanted software remover to maximize build space 
          squash: true

Thanks for your great work !

from template.

fiftydinar avatar fiftydinar commented on July 17, 2024

The reason why we don't include "Maximize Build Space" by default is that it's not required for all images, while it increases the time of image building.

But commenting out the additional options in template & explaining them might be a good idea.
Will see if @xynydev also agrees.

from template.

xynydev avatar xynydev commented on July 17, 2024

Yes, that's a good idea especially for a common usecase like this. I'll reopen the issue so we get it done eventually.

from template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.