Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Commit

Permalink
feat: Move to goreleaser that support binary template
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilde committed Feb 20, 2018
1 parent 5e63c67 commit 713a7a1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

; Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

; Golang
[*.go]
indent_style = tab
indent_size = 4

; YAML
[*.{yaml,yml}]
indent_style = space
indent_size = 2

[{Makefile,GNUmakefile}]
indent_style = tab
indent_size = 4
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build-gox: deps fmtcheck vet

release:
go get github.com/goreleaser/goreleaser; \
scripts/release.sh; \
goreleaser; \

deps:
go get -u github.com/mitchellh/gox
Expand All @@ -45,4 +45,4 @@ vet:
exit 1; \
fi

.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile
.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile
4 changes: 1 addition & 3 deletions goreleaser.yml.template → goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
builds:
- binary: terraform-provider-runscope_$VERSION
- binary: terraform-provider-runscope_v{{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
hooks:
post: ./scripts/goreleaser-post.sh
archive:
format: zip
files:
4 changes: 0 additions & 4 deletions scripts/goreleaser-post.sh

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/release.sh

This file was deleted.

0 comments on commit 713a7a1

Please sign in to comment.