Skip to content

Commit

Permalink
try to generate reproducible builds with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
yannh committed Jun 21, 2020
1 parent 867f093 commit 41675a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ terraform.*
.terraform
crash.log
.envrc
dist/
8 changes: 8 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
builds:
- env:
- CGO_ENABLED=0
- GOFLAGS = -mod=vendor
- GO111MODULE = on
goos:
- windows
- linux
- darwin
- flags:
- -trimpath
- -tags netgo
- -a
- ldflags:
- -extldflags "-static"
archives:
- format: tar.gz
format_overrides:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ apply:
update-sdk:
GOFLAGS= go get -u github.com/yannh/statuspage-go-sdk
go mod vendor

release:
docker run -e GITHUB_TOKEN -t -v $$PWD:/go/src/github.com/yannh/terraform-provider-statuspage -w /go/src/github.com/yannh/terraform-provider-statuspage goreleaser/goreleaser:v0.138 goreleaser

0 comments on commit 41675a8

Please sign in to comment.