Skip to content

Commit

Permalink
added goreleaser build
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Jan 2, 2021
1 parent a79dfbd commit b35d2c5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Dependency directories (remove the comment below to include it)
# vendor/

# Distribution builds by goreleaser
dist/
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=0
goos:
- linux

archives:
-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
386: i386
amd64: x86_64
files:
- none*

checksum:
name_template: '{{ .ProjectName }}_checksums.txt'

snapshot:
name_template: "SNAPSHOT"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit b35d2c5

Please sign in to comment.