Skip to content

Commit

Permalink
prep for terraform registry
Browse files Browse the repository at this point in the history
  • Loading branch information
plukevdh committed Jun 30, 2020
1 parent aaf8869 commit 9c1ba35
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
*.iml
*.tf

terraform-provider-dmsnitch-*
*.paw

dist/
43 changes: 43 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--local-user"
- "54E8C0807A8EF6B2" # Replace this with your GPG signing key ID
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# Visit your project's GitHub Releases page to publish this release.
draft: true
changelog:
skip: true
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
build-linux: clean
build-linux:
docker build -t dms-builder .
docker run --rm -v "${PWD}":/go/src/terraform-provider-dmsnitch dms-builder go build -o terraform-provider-dmsnitch-linux-amd64

build: clean
build: export CGO_ENABLED = 0
build: export GO111MODULE = on
build:
go get -d -v ./...
go install -v ./...
go build -o terraform-provider-dmsnitch-darwin-amd64
Expand Down

0 comments on commit 9c1ba35

Please sign in to comment.