diff --git a/.github/workflows/validate-release.yml b/.github/workflows/validate-release.yml index 644515ff3618..af9c64ec7542 100644 --- a/.github/workflows/validate-release.yml +++ b/.github/workflows/validate-release.yml @@ -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 diff --git a/release/release.mk b/release/release.mk index e6b32de6ef46..68589f0eb1c6 100644 --- a/release/release.mk +++ b/release/release.mk @@ -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