From 6f6159cc42693c35eea78ab75c51e90bed712e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Tue, 23 Jan 2024 20:53:32 +0100 Subject: [PATCH] chore: add goreleaser file (#17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- .goreleaser.yaml | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..832e634 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,91 @@ +before: + hooks: + - go mod tidy + +builds: + - id: policy-reports + env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + binary: policy-reports + flags: + - -trimpath + # ldflags: + # - -s -w -X github.com/kyverno/policy-reports/pkg/version.BuildVersion={{ .Version }} + +kos: + - build: policy-reports + repository: ghcr.io/kyverno/policy-reports + tags: + - '{{.Tag}}' + - '{{ if not .Prerelease }}latest{{ end }}' + bare: true + preserve_import_paths: false + sbom: none + platforms: + - all + +signs: + - cmd: cosign + certificate: '${artifact}.pem' + args: + - sign-blob + - --output-certificate=${certificate} + - --output-signature=${signature} + - ${artifact} + - --yes + artifacts: all + output: true + +docker_signs: + - cmd: cosign + artifacts: all + output: true + args: + - sign + - ${artifact} + - --yes + +# brews: +# - homepage: https://kyverno.github.io/policy-reports +# description: Declarative Kubernetes end-to-end testing. +# repository: +# owner: kyverno +# name: policy-reports +# branch: brew-{{.Version}} +# pull_request: +# enabled: true +# base: +# owner: kyverno +# name: policy-reports +# branch: main + +archives: + - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}' + +checksum: + name_template: checksums.txt + +source: + enabled: true + +sboms: + - artifacts: archive + - id: source + artifacts: source + +snapshot: + name_template: '{{ incpatch .Version }}-next' + +release: + prerelease: auto + +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'