# GoReleaser config for nginx-cache-purge. # https://goreleaser.com # # CGO is disabled so the binary is fully static (no glibc dependency) and runs # unmodified across modern Linux distributions. version: 2 project_name: nginx-cache-purge before: hooks: - go mod tidy - go test ./... builds: - id: nginx-cache-purge main: . binary: nginx-cache-purge env: - CGO_ENABLED=0 flags: - -trimpath # The build identifiers live in package main, so they are stamped there # rather than in an imported configuration package. ldflags: - -s -w - -X main.Version={{ .Version }} - -X main.Commit={{ .ShortCommit }} - -X main.Date={{ .Date }} - -X main.Mode=release goos: - linux - darwin goarch: - "386" - amd64 - arm - arm64 - ppc64le goarm: - "6" ignore: - goos: darwin goarch: "386" - goos: darwin goarch: arm - goos: darwin goarch: ppc64le archives: - id: default formats: [tar.gz] # Kept compatible with the results of uname, matching the naming earlier # releases were published under. name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" wrap_in_directory: true files: - README.md - LICENSE.txt checksum: name_template: "checksums.txt" snapshot: version_template: "{{ incpatch .Version }}-snapshot" changelog: use: git sort: asc filters: exclude: - "^docs:" - "^test:" - "^chore:"