added goreleaser base config

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-04-27 20:39:26 -07:00
parent 7b9a4557d8
commit b0b16a2f2b
2 changed files with 55 additions and 0 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ tests/report.xml
# node_modules
tests/node_modules
dist/

54
.goreleaser.yml Normal file
View File

@ -0,0 +1,54 @@
project_name: dagger
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/dagger
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
files:
- LICENSE
- README.md
- doc/**/*
- examples/**/*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- tap:
owner: dagger
name: homebrew-tap
commit_author:
name: dagger-bot
email: noreply@dagger.io
homepage: "https://github.com/dagger/dagger"
description: "Dagger is a programmable deployment system."
test: |
system "#{bin}/dagger version"