version: 2
project_name: distribusi
release:
github:
owner: decentral1se
name: distribusi-go
name_template: '{{.Tag}}'
builds:
- id: distribusi
goos:
- darwin
- linux
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "5"
- "6"
- "7"
gomips:
- hardfloat
goamd64:
- v1
targets:
- darwin_amd64_v1
- darwin_arm64
- linux_386
- linux_amd64_v1
- linux_arm_5
- linux_arm_6
- linux_arm_7
- linux_arm64
dir: .
main: .
binary: distribusi
builder: go
gobinary: go
command: build
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
env:
- CGO_ENABLED=0
archives:
- id: default
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: tar.gz
files:
- src: license*
- src: LICENSE*
- src: readme*
- src: README*
- src: changelog*
- src: CHANGELOG*
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
format: '{{ .SHA }}: {{ .Message }} ({{ with .AuthorUsername }}@{{ . }}{{ else }}{{ .AuthorName }} <{{ .AuthorEmail }}>{{ end }})'
dist: dist
env_files:
github_token: ~/.config/goreleaser/github_token
gitlab_token: ~/.config/goreleaser/gitlab_token
gitea_token: ~/.config/goreleaser/gitea_token
before:
hooks:
- go mod tidy
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
gomod:
gobinary: go
announce:
twitter:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
mastodon:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
server: ""
reddit:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
url_template: '{{ .ReleaseURL }}'
slack:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
username: GoReleaser
discord:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
author: GoReleaser
color: "3888754"
icon_url: https://goreleaser.com/static/avatar.png
teams:
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
color: '#2D313E'
icon_url: https://goreleaser.com/static/avatar.png
smtp:
subject_template: '{{ .ProjectName }} {{ .Tag }} is out!'
body_template: 'You can view details from: {{ .ReleaseURL }}'
mattermost:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
username: GoReleaser
linkedin:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
telegram:
message_template: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'
parse_mode: MarkdownV2
webhook:
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
content_type: application/json; charset=utf-8
opencollective:
title_template: '{{ .Tag }}'
message_template: '{{ .ProjectName }} {{ .Tag }} is out!
Check it out at {{ .ReleaseURL }}'
bluesky:
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
git:
tag_sort: -version:refname
upx:
- enabled: "true"
binary: upx
compress: best
lzma: true
github_urls:
download: https://github.com
gitlab_urls:
download: https://gitlab.comconfig.yaml
5a7bd8aa7aa3632b9be8fac1c89bfde89f765b2480bbb0aed3e567b3f6502722 distribusi_0.0.0-SNAPSHOT-f567d2b_darwin_amd64.tar.gz
d6a79d2b5c750d85734b48f06bfe0da3e93b1701aa77892c014a9a0c91f8776e distribusi_0.0.0-SNAPSHOT-f567d2b_darwin_arm64.tar.gz
5ffef963006f723c04f116dbe0d8f1a076f90d768a51b9e49dbf9a67652b2646 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_386.tar.gz
4c319c468ff7ce4b79442c16b7b26a3a66a00aaf94ffa1425632f556bbc3d806 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_amd64.tar.gz
2e2b3ef73c2ab4596de3d9fdc29ed4f33a3b1a8744e30bbb5651bc61468926a9 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_arm64.tar.gz
f1a9f7b28558f59448751208e78a503291199b6a660c71ed384e864f5b705397 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_armv5.tar.gz
2b9ce0a147849b2a39c6f62cc27a3efd914daad554885846941085c08c418fc2 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_armv6.tar.gz
918624726fdde02df50a3a8106c5f3eb6a328377bd7b75e9b9d4b0b0058d4a91 distribusi_0.0.0-SNAPSHOT-f567d2b_linux_armv7.tar.gz
distribusi_0.0.0-SNAPSHOT-f567d2b_checksums.txt