Skip to content

Commit

Permalink
chore: add goreleaser file
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Jan 23, 2024
1 parent 17e6d10 commit 70a11a9
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -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:'

0 comments on commit 70a11a9

Please sign in to comment.