Skip to content

Commit

Permalink
build with -trimpath & pin go image for reproducible builds
Browse files Browse the repository at this point in the history
  • Loading branch information
yannh committed Jun 21, 2020
1 parent 58446c9 commit 867f093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

TFPLAN ?= plan.tfplan
TEST?=$$(go list ./... |grep -v 'vendor')
GOIMAGE ?= golang:1.14
GOIMAGE ?= golang:1.14.4

export CGO_ENABLED = 0
export GOFLAGS = -mod=vendor
Expand All @@ -22,7 +22,7 @@ docker-test:
docker run -t -v $$PWD:/go/src/github.com/yannh/terraform-provider-statuspage -w /go/src/github.com/yannh/terraform-provider-statuspage $(GOIMAGE) make test

build-static:
go build -tags netgo -ldflags '-extldflags "-static"' -a -o bin/terraform-provider-statuspage
go build -trimpath -tags netgo -ldflags '-extldflags "-static"' -a -o bin/terraform-provider-statuspage

docker-build-static:
docker run -t -v $$PWD:/go/src/github.com/yannh/terraform-provider-statuspage -w /go/src/github.com/yannh/terraform-provider-statuspage $(GOIMAGE) make build-static
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ provider "statuspage" {
}
```

## Download

You can download the [latest build from Gitlab](https://gitlab.com/yannhamon/terraform-provider-statuspage/-/jobs/artifacts/master/download?job=build)


## statuspage_component

Components are the individual pieces of infrastructure that are listed on your status page.
Expand Down

0 comments on commit 867f093

Please sign in to comment.