From f74149d4ab3c0e9edd050ca4d06e7b21411c861e Mon Sep 17 00:00:00 2001 From: Yoav Rotem Date: Wed, 14 Jul 2021 15:50:12 +0300 Subject: [PATCH] Update goreleaser (#929) * Fix Junit missing testsuites Fix issue https://github.com/aquasecurity/kube-bench/issues/883 but also bug with overriding output when --outputfile is effective and only write the last controls * Deprecated files command * Update .goreleaser.yml Remove deprecated files, and fix https://github.com/aquasecurity/kube-bench/issues/925 --- .goreleaser.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 152f6e6..e60c5a8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ --- +project_name: kube-bench env: - GO111MODULE=on - KUBEBENCH_CFG=/etc/kube-bench/cfg @@ -28,13 +29,23 @@ archives: nfpms: - vendor: Aqua Security - maintainer: Yoav Rotem description: "The Kubernetes Bench for Security is a Go application that checks whether Kubernetes is deployed according to security best practices" + maintainer: Yoav Rotem license: Apache-2.0 homepage: https://github.com/aquasecurity/kube-bench - files: - "cfg/**/*": "/etc/kube-bench/cfg" - "cfg/config.yaml": "/etc/kube-bench/cfg" + file_name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}' + contents: + - src: "cfg/**/*" + dst: "/etc/kube-bench/cfg" + - src: "cfg/config.yaml" + dst: "/etc/kube-bench/cfg/config.yaml" formats: - deb - rpm +changelog: + sort: asc + filters: + exclude: + - '^docs' + - '^test' + - '^release'