diff --git a/.goreleaser.yml b/.goreleaser.yml index db57a7033..e83e10aee 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,8 +1,5 @@ # This is an example .goreleaser.yml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com -before: - hooks: - - go mod tidy builds: - env: - CGO_ENABLED=0 @@ -13,6 +10,9 @@ builds: goarch: - amd64 - arm64 + ignore: + - goos: windows + goarch: arm64 main: ./cmd/kapp binary: kapp-{{ .Os }}-{{ .Arch }} @@ -40,8 +40,8 @@ snapshot: release: # Repo in which the release will be created. github: - owner: vmware-tanzu - name: carvel-kapp + owner: carvel-dev + name: kapp # If set to true, will not auto-publish the release. draft: true diff --git a/hack/build-binaries.sh b/hack/build-binaries.sh index 5623ceb62..a9a2a7996 100755 --- a/hack/build-binaries.sh +++ b/hack/build-binaries.sh @@ -2,13 +2,11 @@ set -e -x -u -./hack/build.sh - function get_latest_git_tag { git describe --tags | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' } -VERSION="${1:-`get_latest_git_tag`}" +VERSION="${1:-$(get_latest_git_tag)}" # makes builds reproducible export CGO_ENABLED=0