build: releases with actions and docker

This commit is contained in:
Ludvig Lundgren 2021-08-11 15:41:09 +02:00
parent 773e57afe6
commit 2e8d0950c1
6 changed files with 191 additions and 0 deletions

42
.goreleaser.yml Normal file
View file

@ -0,0 +1,42 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 6
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
main: ./cmd/autobrr/main.go
binary: autobrr
ldflags:
- -s -w
archives:
- replacements:
amd64: x86_64
release:
prerelease: auto
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'