From 1a115cc253577112fa527c96f859b11125b389a3 Mon Sep 17 00:00:00 2001 From: Ivan Fetch Date: Mon, 1 Feb 2021 00:18:50 -0500 Subject: [PATCH] Update GoReleaser config for v0.155, add builds for Linux/arm and Windows (#39) The GoReleaser `brews` section is updated to work with version 0.155 (installed via the `curl|bash` in the CircleCI config), and now includes kube-capacity `homepage` and `license` metadata. --- .goreleaser.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 3178542a..96f9a757 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,13 @@ builds: - env: - CGO_ENABLED=0 + goos: + - linux + - darwin + - windows + goarm: + - 6 + - 7 archives: - replacements: darwin: Darwin @@ -19,10 +26,17 @@ changelog: - '^docs:' - '^test:' brews: - - github: - owner: robscott - name: homebrew-tap - folder: Formula - description: kube-capacity provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster - test: | - system "#{bin}/kube-capacity version" +- name: homebrew-tap + tap: + # The token determines the release type (Github/Gitlab). + owner: robscott + name: homebrew-tap + folder: Formula + # Brew fails from multiple 32-bit arm versions. + # Specify which version should be used. + goarm: 6 + homepage: https://github.com/robscott/kube-capacity + license: apache-2.0 + description: kube-capacity provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster + test: | + system "#{bin}/kube-capacity version"