Skip to content

Commit

Permalink
Make goreleaser release .zip artifacts, bump travis go version
Browse files Browse the repository at this point in the history
  • Loading branch information
ripa1993 committed Mar 12, 2021
1 parent 7d9092e commit e12db11
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ config.ign.merged
.terraform
coverage.txt
dist

.idea
48 changes: 21 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: terraform-provider-vagrant
builds:
- binary: terraform-provider-vagrant_v{{ .Version }}
env:
- CGO_ENABLED=0
- binary: '{{ .ProjectName }}_{{ .Version }}'
flags:
- -trimpath
goarch:
- '386'
- amd64
- arm
- arm64
goos:
- darwin
- freebsd
- linux
- openbsd
- solaris
- windows
goarch:
- 386
- amd64
- arm
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: openbsd
goarch: arm
- goos: solaris
goarch: 386
- goos: solaris
goarch: arm
- goos: windows
goarch: arm
archive:
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
- goarch: '386'
goos: darwin
ldflags:
- -s -w -X version.ProviderVersion={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: zip
checksum:
name_template: 'checksums.txt'
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
Expand All @@ -43,3 +35,5 @@ changelog:
exclude:
- '^docs:'
- '^test:'
env:
- CGO_ENABLED=0
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: go

go:
- 1.13
- 1.16

0 comments on commit e12db11

Please sign in to comment.