Skip to content

Commit

Permalink
Unify .goreleaser.yml configuration
Browse files Browse the repository at this point in the history
Use the same general `.goreleaser.yml` configuration in homeport.
  • Loading branch information
HeavyWombat committed Aug 2, 2024
1 parent 448ab0e commit 6572871
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
---
version: 2

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- arm64
- amd64
main: ./cmd/havener/main.go
flags:
- -trimpath
ldflags:
- -s -w -extldflags "-static" -X github.com/homeport/havener/internal/cmd.version={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}'
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
main: ./cmd/havener/main.go
flags:
- -trimpath
ldflags:
- -s -w -extldflags "-static" -X github.com/homeport/havener/internal/cmd.version={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}'

checksum:
name_template: 'checksums.txt'
Expand All @@ -25,27 +27,27 @@ release:
name_template: "{{.ProjectName}} release v{{.Version}}"

changelog:
disable: true
sort: ""
disable: false
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- "Merge pull request"
- "dependabot"

brews:
- repository:
owner: homeport
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/homeport/havener/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: GoReleaser Bot
email: [email protected]
directory: HomebrewFormula
homepage: "https://github.com/homeport/havener"
description: "/ˈheɪvənə/ - Think of it as a swiss army knife for Kubernetes tasks "
license: "MIT"
skip_upload: false
test: |
system "#{bin}/havener version"
- repository:
owner: homeport
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/homeport/havener/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: GoReleaser Bot
email: [email protected]
directory: HomebrewFormula
homepage: "https://github.com/homeport/havener"
description: "/ˈheɪvənə/ - Think of it as a swiss army knife for Kubernetes tasks "
license: "MIT"
skip_upload: false
test: |
system "#{bin}/havener version"

0 comments on commit 6572871

Please sign in to comment.