-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use goreleaser to release binaries with signed checksums to GH
Version is default goreleaser and not nicely set because of goreleaser/goreleaser#985 Signed-off-by: Sandor Szuecs <[email protected]>
- Loading branch information
Showing
6 changed files
with
102 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
project_name: binary-patch | ||
|
||
release: | ||
github: | ||
owner: szuecs | ||
name: binary-patch | ||
|
||
builds: | ||
- main : ./cmd/binary-patch/ | ||
binary: binary-patch | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
- VERSION=$(git describe --tags --always --dirty) | ||
#ldflags: -X main.version={{ .Version }} # works | ||
#ldflags: -X main.version={{ .Env.VERSION }} | ||
#ldflags: -X main.version=$(VERSION) -X main.date=$(shell date -u '+%Y-%m-%d_%I:%M%p') -X main.commit=$(shell git rev-parse HEAD) | ||
|
||
- main : ./cmd/binary-patch-server/ | ||
binary: binary-patch-server | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
goarch: | ||
- amd64 | ||
#ldflags: -X main.version=$(VERSION) -X main.date=$(shell date -u '+%Y-%m-%d_%I:%M%p') -X main.commit=$(shell git rev-parse HEAD) | ||
env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
- VERSION=$(git describe --tags --always --dirty) | ||
|
||
archive: | ||
files: | ||
- README.md | ||
- LICENSE | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^doc' | ||
- '^test' | ||
|
||
sign: | ||
artifacts: checksum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters