From b0b16a2f2b9446576ed4292cc815086afbcc70a7 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Tue, 27 Apr 2021 20:39:26 -0700 Subject: [PATCH] added goreleaser base config Signed-off-by: Sam Alba --- .gitignore | 1 + .goreleaser.yml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index 1244af75..43cb1378 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ tests/report.xml # node_modules tests/node_modules +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..560986be --- /dev/null +++ b/.goreleaser.yml @@ -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"