Skip to content

Commit

Permalink
attempt bulding only for linux
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 16399ba commit aa336cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- run: git config --system --add safe.directory /__w/cosign/cosign
- name: check disk space
run: df -h
- name: goreleaser snapshot
run: make snapshot
- name: goreleaser snapshot-linux
run: make snapshot-linux
env:
PROJECT_ID: honk-fake-project
RUNTIME_IMAGE: gcr.io/distroless/static:debug-nonroot
Expand Down
6 changes: 5 additions & 1 deletion release/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ 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 || true
GOOS=linux LDFLAGS="$(LDFLAGS)" goreleaser release --skip-sign --skip-publish --snapshot --clean --timeout 120m --parallelism 1

.PHONY: snapshot-linux
snapshot-linux:
GOOS=linux GOARCH=amd64 LDFLAGS="$(LDFLAGS)" goreleaser release --skip-sign --skip-publish --snapshot --clean --timeout 120m --parallelism 1

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

0 comments on commit aa336cb

Please sign in to comment.