|
| 1 | +version: 2 |
| 2 | + |
| 3 | +archives: |
| 4 | + - formats: [tar.gz] |
| 5 | + # this name template makes the OS and Arch compatible with the results of `uname`. |
| 6 | + name_template: >- |
| 7 | + {{ .ProjectName }}_ |
| 8 | + {{- title .Os }}_ |
| 9 | + {{- if eq .Arch "amd64" }}x86_64 |
| 10 | + {{- else if eq .Arch "386" }}i386 |
| 11 | + {{- else }}{{ .Arch }}{{ end }} |
| 12 | + {{- if .Arm }}v{{ .Arm }}{{ end }} |
| 13 | +
|
| 14 | +changelog: |
| 15 | + use: github |
| 16 | + sort: asc |
| 17 | + groups: |
| 18 | + - title: "Features" |
| 19 | + regexp: "(?i)(feat|feature|\\[feature\\]|\\[feat\\]|\\bFEATURE\\b)" |
| 20 | + order: 1 |
| 21 | + - title: "Bug Fixes" |
| 22 | + regexp: "(?i)(fix|bugfix|\\[bugfix\\]|\\[BUGFIX\\]|\\bBUGFIX\\b)" |
| 23 | + order: 2 |
| 24 | + - title: "Documentation" |
| 25 | + regexp: "(?i)(docs?|documentation|\\[docs?\\])" |
| 26 | + order: 3 |
| 27 | + - title: "Dependencies" |
| 28 | + regexp: "(?i)(build\\(deps\\)|bump|dependencies)" |
| 29 | + order: 4 |
| 30 | + - title: "Maintenance" |
| 31 | + regexp: "(?i)(chore|refactor|\\[chore\\])" |
| 32 | + order: 5 |
| 33 | + - title: "Other Changes" |
| 34 | + regexp: ".*" |
| 35 | + order: 99 |
| 36 | + |
| 37 | + filters: |
| 38 | + exclude: |
| 39 | + - '^docs:' |
| 40 | + - '^test:' |
| 41 | + - 'merge conflict' |
| 42 | + - 'Merge branch' |
| 43 | + - 'Merge pull request' |
| 44 | + |
| 45 | +release: |
| 46 | + github: |
| 47 | + owner: kubernetes |
| 48 | + name: kube-state-metrics |
| 49 | + |
| 50 | + prerelease: "true" |
| 51 | + |
| 52 | + header: | |
| 53 | + ## {{ .Tag }} / {{ .Now.Format "2006-01-02" }} |
| 54 | + |
| 55 | + {{- if index .Env "GO_VERSION" }} |
| 56 | + ## Note |
| 57 | + - This release builds with Go `{{ index .Env "GO_VERSION" }}` |
| 58 | + {{- end }} |
| 59 | +
|
| 60 | + {{- if index .Env "K8S_CLIENT_VERSION" }} |
| 61 | + - This release builds with `k8s.io/client-go`: `{{ index .Env "K8S_CLIENT_VERSION" }}` |
| 62 | + {{- end }} |
| 63 | +
|
| 64 | + {{- if index .Env "GITHUB_ACTOR" }} |
| 65 | + - Release coordinator: @{{ index .Env "GITHUB_ACTOR" }} |
| 66 | + {{- end }} |
| 67 | +
|
| 68 | + footer: | |
| 69 | + **Full Changelog**: {{ .GitURL }}/compare/{{ .PreviousTag }}...{{ .Tag }} |
| 70 | +
|
| 71 | + mode: replace |
| 72 | + |
| 73 | + # If set, will create a release discussion in the category specified. |
| 74 | + # Warning: do not use categories in the 'Announcement' format. |
| 75 | + # Check https://github.com/goreleaser/goreleaser/issues/2304 for more info. |
| 76 | + # Default: ''. |
| 77 | + discussion_category_name: Releases |
0 commit comments