-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
96 lines (89 loc) · 2.3 KB
/
.goreleaser.yml
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
project_name: certin
builds:
- binary: certin
main: ./cmd/certin
env:
- CGO_ENABLED=0
ldflags:
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
-s -w -X github.com/joemiller/certin/cmd/certin/commands.version={{.Version}}+{{.ShortCommit}}
goos:
- linux
- darwin
# - windows
- freebsd
- openbsd
# - dragonfly
# - netbsd
goarch:
- amd64
# - arm
- arm64
goarm:
- ""
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
archives:
# binary-only releases - all platforms
- id: binaries
format: binary
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
# archive releases containing: binary, readme, and license. tarballs (macos, linux), zip (windows)
- id: archives
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "skip ci"
- "ci skip"
- Merge pull request
- Merge branch
brews:
- ids:
- archives
repository:
owner: joemiller
name: homebrew-taps
commit_author:
name: joe miller
email: [email protected]
folder: Formula
homepage: "https://github.com/joemiller/certin"
description: "Certin is a Go library and CLI for quickly creating keys and certificates for use as test fixtures."
dockers:
# primary docker image for amd64 arch
- dockerfile: Dockerfile
ids:
- certin
goos: linux
goarch: amd64
image_templates:
- "joemiller/certin:{{ .Tag }}" # v1.0.0
- "joemiller/certin:v{{ .Major }}" # v1
- "joemiller/certin:v{{ .Major }}.{{ .Minor }}" # v1.0
- "joemiller/certin:latest"
# build a docker image for arm64 arch
- dockerfile: Dockerfile
ids:
- certin
goos: linux
goarch: arm64
goarm: ""
image_templates:
- "joemiller/certin:{{ .Tag }}-arm64" # v1.0.0
- "joemiller/certin:v{{ .Major }}-arm64" # v1
- "joemiller/certin:v{{ .Major }}.{{ .Minor }}-arm64" # v1.0
- "joemiller/certin:latest-arm64"