|
| 1 | +# This is an example .goreleaser.yml file with some sensible defaults. |
| 2 | +# Make sure to check the documentation at https://goreleaser.com |
| 3 | +#before: |
| 4 | +# hooks: |
| 5 | +# # You may remove this if you don't use go modules. |
| 6 | +# - go mod tidy |
| 7 | +# # you may remove this if you don't need go generate |
| 8 | +# - go generate ./... |
| 9 | +builds: |
| 10 | + - env: |
| 11 | + - CGO_ENABLED=0 |
| 12 | + main: ./cmd/bc-cli/ |
| 13 | + ldflags: |
| 14 | + - -s -w -X k8s.io/component-base/version.gitVersion={{.Version}} -X k8s.io/component-base/version.gitCommit={{.Commit}} -X k8s.io/component-base/version.buildDate={{.Date}} |
| 15 | + goos: |
| 16 | + - linux |
| 17 | + - windows |
| 18 | + - darwin |
| 19 | + |
| 20 | +archives: |
| 21 | + - format: tar.gz |
| 22 | + # this name template makes the OS and Arch compatible with the results of uname. |
| 23 | + name_template: >- |
| 24 | + {{ .ProjectName }}_ |
| 25 | + {{- title .Os }}_ |
| 26 | + {{- if eq .Arch "amd64" }}x86_64 |
| 27 | + {{- else if eq .Arch "386" }}i386 |
| 28 | + {{- else }}{{ .Arch }}{{ end }} |
| 29 | + {{- if .Arm }}v{{ .Arm }}{{ end }} |
| 30 | + # use zip for windows archives |
| 31 | + format_overrides: |
| 32 | + - goos: windows |
| 33 | + format: zip |
| 34 | +checksum: |
| 35 | + name_template: 'checksums.txt' |
| 36 | +snapshot: |
| 37 | + name_template: "{{ incpatch .Version }}-next" |
| 38 | +changelog: |
| 39 | + # Sorts the changelog by the commit's messages. |
| 40 | + # Could either be asc, desc or empty |
| 41 | + sort: asc |
| 42 | + # Changelog generation implementation to use. |
| 43 | + # |
| 44 | + # Valid options are: |
| 45 | + # - `git`: uses `git log`; |
| 46 | + # - `github`: uses the compare GitHub API, appending the author login to the changelog. |
| 47 | + # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog. |
| 48 | + # - `github-native`: uses the GitHub release notes generation API, disables the groups feature. |
| 49 | + # |
| 50 | + # Default: 'git' |
| 51 | + use: github |
| 52 | + # Group commits messages by given regex and title. |
| 53 | + # Order value defines the order of the groups. |
| 54 | + # Providing no regex means all commits will be grouped under the default group. |
| 55 | + # Groups are disabled when using github-native, as it already groups things by itself. |
| 56 | + # Matches are performed against strings of the form: "<abbrev-commit>[:] <title-commit>". |
| 57 | + # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax. |
| 58 | + groups: |
| 59 | + - title: New Features |
| 60 | + regexp: "^.*feat[(\\w)]*:+.*$" |
| 61 | + order: 0 |
| 62 | + - title: 'Bug Fixes' |
| 63 | + regexp: "^.*fix[(\\w)]*:+.*$" |
| 64 | + order: 1 |
| 65 | + - title: Others |
| 66 | + order: 999 |
| 67 | + filters: |
| 68 | + # Commit messages matching the regexp listed here will be removed from |
| 69 | + # the changelog |
| 70 | + exclude: |
| 71 | + - '^Merge pull request' |
| 72 | +release: |
| 73 | + # Repo in which the release will be created. |
| 74 | + # Default is extracted from the origin remote URL or empty if its private hosted. |
| 75 | +# github: |
| 76 | +# owner: user |
| 77 | +# name: repo |
| 78 | + |
| 79 | + # IDs of the archives to use. |
| 80 | + # Empty means all IDs. |
| 81 | + # |
| 82 | + # Default: [] |
| 83 | +# ids: |
| 84 | +# - foo |
| 85 | +# - bar |
| 86 | + |
| 87 | + # If set to true, will not auto-publish the release. |
| 88 | + # Available only for GitHub and Gitea. |
| 89 | + # |
| 90 | + # Default: false |
| 91 | + draft: true |
| 92 | + |
| 93 | + # Whether to remove existing draft releases with the same name before creating |
| 94 | + # a new one. |
| 95 | + # Only effective if `draft` is set to true. |
| 96 | + # Available only for GitHub. |
| 97 | + # |
| 98 | + # Default: false |
| 99 | + # Since: v1.11 |
| 100 | + replace_existing_draft: false |
| 101 | + |
| 102 | + # Useful if you want to delay the creation of the tag in the remote. |
| 103 | + # You can create the tag locally, but not push it, and run GoReleaser. |
| 104 | + # It'll then set the `target_commitish` portion of the GitHub release to the |
| 105 | + # value of this field. |
| 106 | + # Only works on GitHub. |
| 107 | + # |
| 108 | + # Default: '' |
| 109 | + # Since: v1.11 |
| 110 | + # Templates: allowed |
| 111 | +# target_commitish: '{{ .Commit }}' |
| 112 | + |
| 113 | + # This allows to change which tag GitHub will create. |
| 114 | + # Usually you'll use this together with `target_commitish`, or if you want to |
| 115 | + # publish a binary from a monorepo into a public repository somewhere, without |
| 116 | + # the tag prefix. |
| 117 | + # |
| 118 | + # Default: '{{ .PrefixedCurrentTag }}' |
| 119 | + # Since: v1.19 (pro) |
| 120 | + # Templates: allowed |
| 121 | +# tag: '{{ .CurrentTag }}' |
| 122 | + |
| 123 | + # If set, will create a release discussion in the category specified. |
| 124 | + # |
| 125 | + # Warning: do not use categories in the 'Announcement' format. |
| 126 | + # Check https://github.com/goreleaser/goreleaser/issues/2304 for more info. |
| 127 | + # |
| 128 | + # Default is empty. |
| 129 | +# discussion_category_name: General |
| 130 | + |
| 131 | + # If set to auto, will mark the release as not ready for production |
| 132 | + # in case there is an indicator for this in the tag e.g. v1.0.0-rc1 |
| 133 | + # If set to true, will mark the release as not ready for production. |
| 134 | + # Default is false. |
| 135 | +# prerelease: auto |
| 136 | + |
| 137 | + # What to do with the release notes in case there the release already exists. |
| 138 | + # |
| 139 | + # Valid options are: |
| 140 | + # - `keep-existing`: keep the existing notes |
| 141 | + # - `append`: append the current release notes to the existing notes |
| 142 | + # - `prepend`: prepend the current release notes to the existing notes |
| 143 | + # - `replace`: replace existing notes |
| 144 | + # |
| 145 | + # Default is `keep-existing`. |
| 146 | + mode: append |
| 147 | + |
| 148 | + # Header for the release body. |
| 149 | + # |
| 150 | + # Templates: allowed |
| 151 | + header: | |
| 152 | + ## {{.ProjectName}}-v{{.Version}} |
| 153 | +
|
| 154 | + Welcome to this new release! |
| 155 | + |
| 156 | + ### Breaking Changes: |
| 157 | + None |
| 158 | + # Footer for the release body. |
| 159 | + # |
| 160 | + # Templates: allowed |
| 161 | + footer: | |
| 162 | + ## Thanks to our Contributors! |
| 163 | + |
| 164 | + Thank you to everyone who contributed to {{.Tag}}! ❤️ |
| 165 | +
|
| 166 | + And thank you very much to everyone else not listed here who contributed in other ways like filing issues, giving feedback, testing fixes, helping users in slack, etc. 🙏 |
| 167 | + # You can change the name of the release. |
| 168 | + # |
| 169 | + # Default: '{{.Tag}}' ('{{.PrefixedTag}}' on Pro) |
| 170 | + # Templates: allowed |
| 171 | + name_template: "v{{.Version}}" |
| 172 | + |
| 173 | + # You can disable this pipe in order to not create the release on any SCM. |
| 174 | + # Keep in mind that this might also break things that depend on the release |
| 175 | + # URL, for instance, homebrew taps. |
| 176 | + # |
| 177 | + # Templates: allowed (since v1.15) |
| 178 | +# disable: true |
| 179 | + |
| 180 | + # Set this to true if you want to disable just the artifact upload to the SCM. |
| 181 | + # If this is true, GoReleaser will still create the release with the |
| 182 | + # changelog, but won't upload anything to it. |
| 183 | + # |
| 184 | + # Since: v1.11 |
| 185 | + # Templates: allowed (since v1.15) |
| 186 | +# skip_upload: true |
| 187 | + |
| 188 | + # You can add extra pre-existing files to the release. |
| 189 | + # The filename on the release will be the last part of the path (base). |
| 190 | + # If another file with the same name exists, the last one found will be used. |
| 191 | + # |
| 192 | + # Templates: allowed |
| 193 | +# extra_files: |
| 194 | +# - glob: ./path/to/file.txt |
| 195 | +# - glob: ./glob/**/to/**/file/**/* |
| 196 | +# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous |
| 197 | +# - glob: ./single_file.txt |
| 198 | +# name_template: file.txt # note that this only works if glob matches 1 file only |
| 199 | + |
| 200 | + |
| 201 | + # Additional templated extra files to add to the release. |
| 202 | + # Those files will have their contents pass through the template engine, |
| 203 | + # and its results will be added to the release. |
| 204 | + # |
| 205 | + # Since: v1.17 (pro) |
| 206 | + # This feature is only available in GoReleaser Pro. |
| 207 | + # Templates: allowed |
| 208 | +# templated_extra_files: |
| 209 | +# - src: LICENSE.tpl |
| 210 | +# dst: LICENSE.txt |
| 211 | + |
| 212 | +# The lines beneath this are called `modelines`. See `:help modeline` |
| 213 | +# Feel free to remove those if you don't want/use them. |
| 214 | +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json |
| 215 | +# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
0 commit comments