Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-decker committed Jan 2, 2025
1 parent e14df49 commit 319976d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
version: 2
builds:
- binary: trufflehog
- id: trufflehog-upx
binary: trufflehog
ldflags:
- -X 'github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{ .Version }}'
env: [CGO_ENABLED=0]
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
hooks:
post:
- bash -c 'if [ "{{ .Env.GGOOS }}" != "darwin" ]; then upx -q "{{ .Path }}" || true; fi'
- upx -q "{{ .Path }}"
- id: trufflehog
binary: trufflehog
ldflags:
- -X 'github.com/trufflesecurity/trufflehog/v3/pkg/version.BuildVersion={{ .Version }}'
env: [CGO_ENABLED=0]
goos:
- darwin
- windows
goarch:
- amd64
- arm64
dockers:
- image_templates: ["trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile.goreleaser
Expand Down

0 comments on commit 319976d

Please sign in to comment.