-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
157 lines (119 loc) · 3.76 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
project_name: x509-metrics
builds:
-
id: x509-metrics
main: ./cmd/x509-metrics.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: darwin
linux: linux
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
# You can have multiple Docker images.
-
# ID of the image, needed if you want to filter by it later on (e.g. on custom publishers).
id: x509-metrics
# GOOS of the built binaries/packages that should be used.
goos: linux
# GOARCH of the built binaries/packages that should be used.
goarch: amd64
# GOAMD64 of the built binaries/packages that should be used.
goamd64: 'v1'
# IDs to filter the binaries/packages.
ids:
- x509-metrics
# Templates of the Docker image names.
image_templates:
- "ghcr.io/jmoney/x509-metrics:latest"
- "ghcr.io/jmoney/x509-metrics:{{ .Tag }}"
- "ghcr.io/jmoney/x509-metrics:v{{ .Major }}"
dockerfile: 'Dockerfile'
use: docker
# .goreleaser.yaml
brews:
-
name: "x509-metrics@{{ .Tag }}"
tap:
owner: jmoney
name: homebrew-server-utils
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: noreply@gmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://jmoney.dev/x509-metrics"
description: "Reports tls certificate metrics"
# SPDX identifier of your app's license.
# Default is empty.
license: "Apache 2.0"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
# skip_upload: true
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/x509-metrics -h"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "x509-metrics"
-
name: "x509-metrics"
tap:
owner: jmoney
name: homebrew-server-utils
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: noreply@gmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://jmoney.dev/x509-metrics"
description: "Reports tls certificate metrics"
# SPDX identifier of your app's license.
# Default is empty.
license: "Apache 2.0"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
# skip_upload: true
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/x509-metrics -h"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "x509-metrics"