-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
97 lines (89 loc) · 2.32 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
86
87
88
89
90
91
92
93
94
95
96
97
version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
tags:
- no_net
- no_json
- no_pprof
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
gomod:
proxy: true
mod: mod
archives:
- format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
dockers:
- image_templates: ["ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-amd64"]
use: buildx
goarch: amd64
build_flag_templates:
- --platform=linux/amd64
- image_templates: ["ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-arm64"]
use: buildx
goarch: arm64
build_flag_templates:
- --platform=linux/arm64
docker_manifests:
-
name_template: ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-arm64
-
name_template: ghcr.io/grol-io/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/grol-io/{{ .ProjectName }}:{{ .Version }}-arm64
release:
prerelease: auto
mode: append
# .goreleaser.yaml
brews:
-
# GitHub/GitLab repository to push the formula to
repository:
owner: grol-io
name: homebrew-tap
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: [email protected]
# 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.
directory: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://grol.io/"
# 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")