mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 09:59:54 +00:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
# Make sure to check the documentation at https://goreleaser.com
|
|
|
|
# The lines bellow are called `modelines`. See `:help modeline`
|
|
# Feel free to remove those if you don't want/need to use them.
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
|
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: "kubescape-cli"
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- riscv64
|
|
ldflags:
|
|
- -s -w -X "github.com/kubescape/kubescape/v3/core/cautils.BuildNumber={{.Env.RELEASE}}"
|
|
binary: >-
|
|
{{ .ProjectName }}-
|
|
{{- if eq .Arch "amd64" }}
|
|
{{- else }}{{ .Arch }}-{{ end }}
|
|
{{- if eq .Os "darwin" }}macos
|
|
{{- else if eq .Os "linux" }}ubuntu
|
|
{{- else }}{{ .Os }}{{ end }}-latest
|
|
no_unique_dist_dir: true
|
|
|
|
archives:
|
|
- format: tar.gz
|
|
# this name template makes the OS and Arch compatible with the results of `uname`.
|
|
name_template: >-
|
|
{{ .Binary }}
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
|
|
sboms:
|
|
- artifacts: archive
|