chore: fix .goreleaser.yml and goreleaser usage for goreleaser v2 (#3073)

This commit is contained in:
Shunsuke Suzuki 2024-07-18 23:23:59 +09:00 committed by GitHub
parent cd6d386535
commit 68ec7a28a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -44,7 +44,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

View file

@ -1,3 +1,4 @@
version: 2
builds:
- binary: trufflehog
ldflags:
@ -87,7 +88,7 @@ docker_manifests:
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8
brews:
- tap:
- repository:
owner: trufflesecurity
name: homebrew-trufflehog
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
@ -107,4 +108,4 @@ signs:
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum
artifacts: checksum

View file

@ -65,4 +65,4 @@ snifftest:
./hack/snifftest/snifftest.sh
test-release:
goreleaser release --rm-dist --skip-publish --snapshot
goreleaser release --clean --skip-publish --snapshot