From 7ad6343e6f6d40aa12178cf593ae76711c95b713 Mon Sep 17 00:00:00 2001 From: Adphi Date: Mon, 12 Sep 2022 10:50:50 +0200 Subject: [PATCH] goreleaser: add brew support Signed-off-by: Adphi --- .goreleaser.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b8c3f0d..ebb7383 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -42,10 +42,31 @@ release: - glob: LICENCE - glob: pgp.pub archives: -- files: +- name_template: '{{ .ProjectName }}_{{ .Env.VERSION }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' + files: - LICENCE - README.md - completions/* +brews: +- name: d2vm + tap: + owner: linka-cloud + name: homebrew-tap + folder: Formula + homepage: https://github.com/linka-cloud/d2vm + description: Build Virtual Machine Image from Dockerfile or Docker image + license: Apache License 2.0 + test: | + system "#{bin}/d2vm --version" + dependencies: + - name: go + type: optional + - name: git + install: |- + bin.install "d2vm" + bash_completion.install "completions/d2vm.bash" => "d2vm" + zsh_completion.install "completions/d2vm.zsh" => "_d2vm" + fish_completion.install "completions/d2vm.fish" changelog: sort: asc filters: