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: with:
distribution: goreleaser distribution: goreleaser
version: latest version: latest
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

View file

@ -1,3 +1,4 @@
version: 2
builds: builds:
- binary: trufflehog - binary: trufflehog
ldflags: ldflags:
@ -87,7 +88,7 @@ docker_manifests:
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64 - ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8 - ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8
brews: brews:
- tap: - repository:
owner: trufflesecurity owner: trufflesecurity
name: homebrew-trufflehog name: homebrew-trufflehog
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"

View file

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