|
| 1 | +# For more information on configuring GoReleaser, refer to the documentation: |
| 2 | +# https://goreleaser.com |
| 3 | +# |
| 4 | +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json |
| 5 | +# vim: set ts=2 sw=2 tw=0 fo=cnqoj |
| 6 | +version: 2 |
| 7 | + |
| 8 | +before: |
| 9 | + hooks: |
| 10 | + - go mod tidy |
| 11 | + - go generate ./... |
| 12 | + |
| 13 | +builds: |
| 14 | + - env: |
| 15 | + - CGO_ENABLED=0 |
| 16 | + goos: |
| 17 | + - linux |
| 18 | + - windows |
| 19 | + - darwin |
| 20 | + |
| 21 | +archives: |
| 22 | + - format: tar.gz |
| 23 | + # this name template makes the OS and Arch compatible with the results of `uname`. |
| 24 | + name_template: >- |
| 25 | + {{ .ProjectName }}_ |
| 26 | + {{- title .Os }}_ |
| 27 | + {{- if eq .Arch "amd64" }}x86_64 |
| 28 | + {{- else if eq .Arch "386" }}i386 |
| 29 | + {{- else }}{{ .Arch }}{{ end }} |
| 30 | + {{- if .Arm }}v{{ .Arm }}{{ end }} |
| 31 | + # use zip for windows archives |
| 32 | + format_overrides: |
| 33 | + - goos: windows |
| 34 | + format: zip |
| 35 | + |
| 36 | +nfpms: |
| 37 | + - vendor: Datum Technology, Inc |
| 38 | + homepage: https://www.datum.net/ |
| 39 | + |
| 40 | + license: Apache 2.0 |
| 41 | + provides: |
| 42 | + - datumctl |
| 43 | + recommends: |
| 44 | + - kubectl |
| 45 | + formats: |
| 46 | + - apk |
| 47 | + - deb |
| 48 | + - rpm |
| 49 | + - termux.deb |
| 50 | + - archlinux |
| 51 | + |
| 52 | +changelog: |
| 53 | + sort: asc |
| 54 | + filters: |
| 55 | + exclude: |
| 56 | + - "^docs:" |
| 57 | + - "^test:" |
| 58 | + - "^chore:" |
| 59 | + |
| 60 | +release: {} |
| 61 | + |
| 62 | +sboms: |
| 63 | + - artifacts: archive |
| 64 | + |
| 65 | +brews: |
| 66 | +- name: cli |
| 67 | + commit_author: |
| 68 | + name: Datum Release Bot |
| 69 | + |
| 70 | + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" |
| 71 | + directory: Formula |
| 72 | + homepage: "https://www.datum.net/" |
| 73 | + description: "A network cloud, built on open source." |
| 74 | + license: "Apache 2.0" |
| 75 | + repository: |
| 76 | + owner: datum-cloud |
| 77 | + name: homebrew-tap |
| 78 | + branch: main |
| 79 | + |
| 80 | +krews: |
| 81 | +- commit_author: |
| 82 | + name: goreleaserbot |
| 83 | + |
| 84 | + commit_msg_template: "Krew plugin update for {{ .ProjectName }} version {{ .Tag }}" |
| 85 | + homepage: "https://www.datum.net/" |
| 86 | + description: "Software to create fast and easy drum rolls." |
| 87 | + short_description: "Software to create fast and easy drum rolls." |
| 88 | + # TODO: Remove once we configure pushing to a different repo |
| 89 | + skip_upload: true |
0 commit comments