Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: maximize available disk space for release #4937

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Aug 4, 2023

Description

We still have disk space problem.
Add next fixes for this:

Tests:

https://github.com/DmitriyLewen/trivy/actions/runs/5804310282

Issue

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@DmitriyLewen DmitriyLewen self-assigned this Aug 7, 2023
@DmitriyLewen DmitriyLewen marked this pull request as ready for review August 8, 2023 08:53
Comment on lines 112 to 114
rm -r dist/build-*
rm -r dist/*tar.gz*
rm -r dist/*zip
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we remove all files other than .deb and .rpm? And after using easimon/maximize-build-space, there is enough space. We may not need to remove these files.

find . -type f ! \( -name "*.rpm" -o -name "*.deb" \) -exec rm -f {} +

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what about *.dep.pem or *.dep.sig files?
i thought deploy scripts use them.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure, but easimon/maximize-build-space gives us enough space. We can remove this step for now.

@knqyf263 knqyf263 changed the title ci: remove unneeded bins and archives for release action build: maximize available disk space for release Aug 9, 2023
@knqyf263 knqyf263 added this pull request to the merge queue Aug 9, 2023
Merged via the queue into aquasecurity:main with commit bc2b0ca Aug 9, 2023
14 checks passed
AnaisUrlichs pushed a commit to AnaisUrlichs/trivy that referenced this pull request Aug 10, 2023
* remove unneeded bins and archives

* use jlumbroso/free-disk-space

* remove repeating step

* use maximize-build-space

* build: remove unused step

---------

Co-authored-by: knqyf263 <knqyf263@gmail.com>
@DmitriyLewen DmitriyLewen deleted the ci/remove-unneeded-bins branch September 18, 2023 05:01
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.

build: out of disk space in release
2 participants