-
Notifications
You must be signed in to change notification settings - Fork 1
/
goreleaser.yaml
85 lines (78 loc) · 2.08 KB
/
goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
gomod:
proxy: true
mod: mod
dockers:
- image_templates: ["fortio/{{ .ProjectName }}:{{ .Version }}-amd64"]
use: buildx
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- image_templates: ["fortio/{{ .ProjectName }}:{{ .Version }}-arm64"]
use: buildx
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
docker_manifests:
-
name_template: fortio/{{ .ProjectName }}:{{ .Version }}
image_templates:
- fortio/{{ .ProjectName }}:{{ .Version }}-amd64
- fortio/{{ .ProjectName }}:{{ .Version }}-arm64
-
name_template: fortio/{{ .ProjectName }}:latest
image_templates:
- fortio/{{ .ProjectName }}:{{ .Version }}-amd64
- fortio/{{ .ProjectName }}:{{ .Version }}-arm64
release:
prerelease: auto
mode: append
# .goreleaser.yaml
brews:
-
# GitHub/GitLab repository to push the formula to
repository:
owner: fortio
name: homebrew-tap
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://fortio.org/"
# Template of your app's description.
# Default is empty.
description: "{{ .Env.TAP_DESCRIPTION }}"
# SPDX identifier of your app's license.
# Default is empty.
license: "Apache-2.0"
# So you can `brew test` your formula.
# Default is empty.
test: |
assert_match version.to_s, shell_output("#{bin}/{{ .ProjectName }} -version")