Skip to content

Commit

Permalink
goreleaser: config updates
Browse files Browse the repository at this point in the history
* Don't quote GOFLAGS value (GoReleaser expects unquoted env var values)
* Fix deprecated archive -> new archives section
* Fix deprecated nfpm -> new nfpms section
  • Loading branch information
evanelias committed Sep 6, 2019
1 parent c2240ab commit 11cfcc8
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ builds:
env:
- CGO_ENABLED=0
- GO111MODULE=on
- GOFLAGS="-mod=vendor"
- GOFLAGS=-mod=vendor
goos:
- linux
- darwin
goarch:
- amd64
archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
replacements:
darwin: mac
linux: linux
archives:
-
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
replacements:
darwin: mac
linux: linux
checksum:
name_template: '{{ .ProjectName }}_checksums_{{ .Version }}.txt'
snapshot:
Expand All @@ -29,14 +30,14 @@ changelog:
- '(?i)^internal'
- '(?i)^readme:'
- '(?i)^goreleaser:'
nfpm:
name_template: '{{ .ProjectName }}_{{ .Arch }}'
homepage: https://skeema.io
description: Schema management CLI for MySQL
maintainer: Evan Elias <evan@skeema.net>
license: Apache 2.0
vendor: Skeema LLC
formats:
- deb
- rpm

nfpms:
-
name_template: '{{ .ProjectName }}_{{ .Arch }}'
homepage: https://skeema.io
description: Schema management CLI for MySQL
maintainer: Evan Elias <evan@skeema.net>
license: Apache 2.0
vendor: Skeema LLC
formats:
- deb
- rpm

0 comments on commit 11cfcc8

Please sign in to comment.