Skip to content

Commit

Permalink
Merge pull request #773 from carvel-dev/update-branch-name
Browse files Browse the repository at this point in the history
updated goreleaser in 0.54.x
  • Loading branch information
kumaritanushree authored Jun 19, 2023
2 parents 0e2e052 + f30497b commit 7b2e5ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,6 +10,9 @@ builds:
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
main: ./cmd/kapp
binary: kapp-{{ .Os }}-{{ .Arch }}

Expand Down Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions hack/build-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b2e5ec

Please sign in to comment.