Skip to content

Commit

Permalink
Add pkg builds
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Nov 19, 2023
1 parent 50c5f8f commit d27a568
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ builds:
flags:
- -trimpath
ldflags:
- -s -w -X github.com/derailed/k9s/cmd.version=v{{.Version}} -X github.com/derailed/k9s/cmd.commit={{.Commit}} -X github.com/derailed/k9s/cmd.date={{.Date}}
- -s -w -X github.com/derailed/k9s/cmd.version=v{{.Version}}
- -s -w -X github.com/derailed/k9s/cmd.commit={{.Commit}}
- -s -w -X github.com/derailed/k9s/cmd.date={{.Date}}

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
Expand All @@ -36,18 +39,20 @@ archives:
format_overrides:
- goos: windows
format: zip

checksum:
name_template: "checksums.sha256"

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

# Homebrew
brews:
- name: k9s
tap:
Expand All @@ -61,3 +66,26 @@ brews:
description: Kubernetes CLI To Manage Your Clusters In Style!
test: |
system "k9s version"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
replacements:
linux: Linux
maintainer: Fernand Galiana
homepage: https://k9scli.io
description: Kubernetes CLI To Manage Your Clusters In Style!
license: "Apache-2.0"
formats:
- deb
- rpm
- apk
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/nfpm/copyright
file_info:
mode: 0644

sboms:
- artifacts: archive

0 comments on commit d27a568

Please sign in to comment.