Skip to content

Commit

Permalink
Setup Goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Jun 17, 2021
1 parent a79fa2f commit 3e61368
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ _testmain.go

.env*

/out/
/dist/
/loadcatd
/loadcat.conf
/loadcat.db
/out

.vscode
*.sublime-project
Expand Down
36 changes: 36 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/loadcatd
env:
- CGO_ENABLED=0
goos:
- linux
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- LICENSE
- ui/templates/*
dockers:
- image_templates:
- loadcat/base:{{ .Tag }}
dockerfile: docker/base/Dockerfile
extra_files:
- docker/base/
- ui/templates/
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 3e61368

Please sign in to comment.