Skip to content

Commit

Permalink
remove unneeded bins and archives (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen authored Aug 3, 2023
1 parent 358d56b commit dd3f6a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/reusable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ jobs:
ghcr.io/aquasecurity/trivy:canary
public.ecr.aws/aquasecurity/trivy:canary
# size of `dist` dir for release is large
# we need to remove unneeded binaries and archives
# to avoid cases when cache will be removed due to size
- name: remove unneeded binaries and archives
if: ${{ inputs.goreleaser_config == 'goreleaser.yml' }}
run: |
ls -hl dist
rm -r dist/build-*
rm -r dist/*tar.gz
rm -r dist/*zip
ls -hl dist
- name: Cache Trivy binaries
uses: actions/cache@v3.3.1
with:
Expand Down

0 comments on commit dd3f6a1

Please sign in to comment.