Skip to content

Commit

Permalink
test disk space of runner before/after goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Fernandez <[email protected]>
  • Loading branch information
hectorj2f committed Aug 1, 2023
1 parent b8c5997 commit 16399ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ jobs:
# - https://github.com/actions/checkout/issues/1048
# - https://github.com/actions/runner-images/issues/6775
- run: git config --system --add safe.directory /__w/cosign/cosign

- name: check disk space
run: df -h
- name: goreleaser snapshot
run: make snapshot
env:
PROJECT_ID: honk-fake-project
RUNTIME_IMAGE: gcr.io/distroless/static:debug-nonroot

- name: check disk space
run: df -h && rm -rf /opt/hostedtoolcache* && df -h
- name: check binaries
run: |
./dist/cosign-linux-amd64 version
2 changes: 1 addition & 1 deletion release/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sign-release-images: ko
# used when need to validate the goreleaser
.PHONY: snapshot
snapshot:
LDFLAGS="$(LDFLAGS)" goreleaser release --skip-sign --skip-publish --snapshot --clean --timeout 120m --parallelism 1
LDFLAGS="$(LDFLAGS)" goreleaser release --skip-sign --skip-publish --snapshot --clean --timeout 120m --parallelism 1 || true

####################
# copy image to GHCR
Expand Down

0 comments on commit 16399ba

Please sign in to comment.