-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
127 lines (109 loc) · 3.29 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
# This is a goreleaser config file that handles building and sending builds to GitHub.
# You can install goreleaser on MacOs with Homebrew
# https://goreleaser.com/install/
# brew install goreleaser
# Quick notes
# Release locally
# goreleaser release --snapshot --rm-dist
# Release latest tagged version
# git tag -a v0.1.0 -m "First release"
# git push origin v0.1.0
# goreleaser release --rm-dist
# git push --delete origin v...
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto
# What to do with the release notes in case there the release already exists.
#
# Valid options are:
# - `keep-existing`: keep the existing notes
# - `append`: append the current release notes to the existing notes
# - `prepend`: prepend the current release notes to the existing notes
# - `replace`: replace existing notes
#
# Default is `keep-existing`.
mode: replace
# Header template for the release body.
# Defaults to empty.
header: |
## certcheck ({{ .Date }})
certcheck checks tls certificates and expiry dates
v0.1.5
Sort output by hostname
v0.1.4
Added completion infor in -h
v0.1.3
More work on PEM cert reading
v0.1.2
Made pem parsing more robust
v0.1.1
Added certfile support
v0.1.0
Initial release with 2 methods for parallel processing
# Footer template for the release body.
# Defaults to empty.
footer: |
## Enjoy
Tag {{ .Tag }}
changelog:
# Set this to true if you don't want any changelog at all.
# Warning: this will also ignore any changelog files passed via `--release-notes`,
# and will render an empty changelog.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
skip: true
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# .goreleaser.yaml
github_urls:
# api: https://github.office.opendns.com/api/v3/
# upload: https://github.office.opendns.com/api/uploads/
# download: https://github.office.opendns.com/
# set to true if you use a self-signed certificate
skip_tls_verify: false
env_files:
github_token: ~/.config/goreleaser/github_token
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- # env:
env:
- CGO_ENABLED=0
ldflags:
- >
-X main.GitCommit={{.ShortCommit}}
-X main.GitLastTag={{.PreviousTag}}
-X main.GitExactTag={{.Tag}}
-X main.Date={{.Date}}
id: certcheck
dir: .
main: ./cmd/certcheck
binary: certcheck
goos:
- linux
- darwin
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386, amd64 and arm64.
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: amd64
arm64: arm64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"